- This topic has 6 replies, 4 voices, and was last updated 20 years, 3 months ago by Riyad Kalla.
-
AuthorPosts
-
albertosantiniMemberI use MyEclipse (3.7.101, last version).
How to manage multiple struts-config.xml?
We have in web.xml:
<servlet>
<servlet-name>action</servlet-name>
<servlet-class>it.mpsgr.advisory.struts.FrontController</servlet-class>
<init-param>
<param-name>config</param-name>
<param-value>
/WEB-INF/struts-config.xml,
/WEB-INF/struts-config-administration.xml,
/WEB-INF/struts-config-portfolio.xml,
/WEB-INF/struts-config-settings.xml
</param-value>
</init-param>
…MyEclipse handles only the classic struts-config.xml as ‘struts-config’.
The other files are a xml files.Regards,
Alberto Santini
support-michaelKeymasterMyEclipse 3.8beta-1 supports struts modules. For modules you need to use the “Open with…” context-menu action on the module file.
The issue is that Eclipse does not yet provide a mechanism to associate a complex file naming pattern with editors (current support limited to file extension and literal file name). Thus, the current association limits ME to association of the StrutsConfigEditor as the default editor for files named “struct-config.xml” and as an alternative editor for files with the “.xml” extension. We are currently researching other mechanisms but most require modifying the Eclipse platform.
Notice: From your post I don’t believe ME is currently parsing the concatenated module names from the config parameter of your web.xml file correctly. If you hit a snag with this, the workaround is to separate the module declarations in you web.xml using the approach:
<init-param>
<param-name>config</param-name>
<param-value>/WEB-INF/struts-config.xml</param-value>
</init-param>
<init-param>
<param-name>config/modB</param-name>
<param-value>/WEB-INF/struts-config-modB.xml</param-value>
</init-param>
albertosantiniMemberThanks for the reply.
It seems I have no problem with my web.xml. 🙂
Regards,
Alberto Santini
ChristianFarleyMemberI am currently having trouble simply saving changes made to the struts-config.xml file. Is this due to it being a trial version?
Riyad KallaMemberChristian,
No… we don’t ‘cripple’ the trial at all.. what kind of problem are you seeing? (unless your trial ran out… go to Window > Preferences > MyEclipse > Subscription… it should tell you how much longer you have)
ChristianFarleyMemberThanks rKalla. I’m sure it’s an issue with my installation then. I’ll re-install and try again. Thanks for the prompt response.
Riyad KallaMemberFixed in 3.8Beta2.
-
AuthorPosts