facebook

Existing Struts config improperly edited by wizard [Closed]

  1. MyEclipse Archived
  2.  > 
  3. Bugs
Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #200718 Reply

    I tried adding Struts capabilities to a web project I am working on. I am already using Struts, and had a struts-config.xml file with some action-mappings and form-beans defined. MyEclipse added missing elements (global-exceptions, global-forwards, message-resources and controller) from the config file at the end of the file, not conforming to the Apache Software Foundation//DTD Struts Configuration 1.1.

    I’m running the following system configuration
    Win2000
    Eclipse Platform: Version: 2.1.1, Build id: 200306271545
    There are several other plugins installed on my system
    MyEclipse: Version: 2.6.100, Build id: 200312091200-2.7-RC1
    Running Java 1.4.1
    I upgraded my current MyEclipse version through the Update perspective.

    Best regards

    Bent André Solheim

    #200746 Reply

    support-michael
    Keymaster

    Thanks for the feedback. I checked our notes and the wizard should have respected your current project state and not modified your config file. I have entered this into our issues tracking system for resolution before the 2.7 GA.

    Michael
    MyEclipse Support

    #200827 Reply

    Thanks Michael.

    Just a note to your reply; In my opinion, MyEclipse adding missing config-elements to my struts-config.xml file was not the problem. The thing is that adding them in a way that does not conform to the Struts Configuration 1.1 DTD appeared to me as a bug.

    Thanks for a great product!

    Best Regards
    Bent

    #200835 Reply

    Riyad Kalla
    Member

    This happened to me too, I just erased them, but I know what you mean. It also added a mapping for the action servlet to my web.xml even though one was already there, BUT I did call the servlet something else besides what was in the file.

    Scott, maybe the wizard should look for the entry that maps to the ActionServlet class, and not the name given to it? That way if it sees there is already an action servlet mapping, it won’t ad another one, no matter what?

    #200837 Reply

    support-michael
    Keymaster

    I checked the design use-cases and the behavior that I placed a bug against is that no changes should be made to existing struts-config.xml file. The web.xml update logic should conform to Rkalla’s comment, i.e., inspect existing definitions servlet classes for an inheritence relation to org.apache.struts.action.ActionServlet

    Michael
    MyEclipse Support

    #200839 Reply

    Yes, this sounds like proper behavior in my opinion, too.

    Thanks Michael!

    Best Regards
    Bent

    #201447 Reply

    support-michael
    Keymaster

    Fixed in ME2.7RC2.

Viewing 7 posts - 1 through 7 (of 7 total)
Reply To: Existing Struts config improperly edited by wizard [Closed]

You must be logged in to post in the forum log in