Uploaded image for project: 'Struts 2'
  1. Struts 2
  2. WW-3787

allow include other config files from classpath

    XMLWordPrintableJSON

Details

    • New Feature
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.1.8, 2.3.1.2
    • 2.5.10
    • XML Configuration
    • None

    Description

      My struts.xml has something like this:

      <include file="struts/*.xml" />

      which works fine when the war is exploded and the files are under WEB-INF\classes

      but I build the application (war) with maven2 and I do package classes in a jar file.

      When Tomcat starts (tried with Tomcat 5 and Tomcat 7) only the main struts.xml (which is inside the jar) is loaded but not the ones inside struts/*.xml

      Am I doing something wrong? I looked for other options like <include file="classpath:..." /> but doesnt work

      Documentation says you can split the file and put into other jars but only with the name struts.xml. I do need multple files in a jar.

      Please advise.

      Attachments

        Issue Links

          Activity

            People

              lukaszlenart Lukasz Lenart
              juan.alvarez Juan Alvarez G
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: