- This topic has 6 replies, 3 voices, and was last updated 20 years, 10 months ago by support-michael.
-
AuthorPosts
-
Bent Andre SolheimMemberI 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
support-michaelKeymasterThanks 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
Bent Andre SolheimMemberThanks 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
Riyad KallaMemberThis 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?
support-michaelKeymasterI 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
Bent Andre SolheimMemberYes, this sounds like proper behavior in my opinion, too.
Thanks Michael!
Best Regards
Bent
support-michaelKeymasterFixed in ME2.7RC2.
-
AuthorPosts