facebook

Multiple struts-config.xml…. [Closed]

  1. MyEclipse IDE
  2.  > 
  3. General Development
Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #208734 Reply

    I 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

    #208745 Reply

    support-michael
    Keymaster

    MyEclipse 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>

    #208750 Reply

    Thanks for the reply.

    It seems I have no problem with my web.xml. 🙂

    Regards,
    Alberto Santini

    #208752 Reply

    I am currently having trouble simply saving changes made to the struts-config.xml file. Is this due to it being a trial version?

    #208754 Reply

    Riyad Kalla
    Member

    Christian,
    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)

    #208758 Reply

    Thanks rKalla. I’m sure it’s an issue with my installation then. I’ll re-install and try again. Thanks for the prompt response.

    #209820 Reply

    Riyad Kalla
    Member

    Fixed in 3.8Beta2.

Viewing 7 posts - 1 through 7 (of 7 total)
Reply To: Multiple struts-config.xml…. [Closed]

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