Google

Interview Questions Test your java skills Java API Reference Notifications Java Forums Java Examples Tell a Friend
Link to us Donate
Javagalaxy.com WWW
Subscribe Un Subscribe

Java Interview Questions on your mobileNew            

Java Interview Questions - JavaGalaxy.com

 Java Interview Questions

Back to Interview questions

AuthorMessage
JavaGalaxy

Question: Can I have more than one struts-config.xml file?

Answer: Yes. A sample configuration in web.xml file would look like this

<servlet>
       <servlet-name>action</servlet-name>
       <servlet-class>org.apache.struts.action.ActionServlet</servlet-class>
       <init-param>
              <param-name>config</param-name>
              <param-value>/WEB-INF/struts-config.xml</param-value>
       </init-param>
       <!-- module configurations -->
       <init-param>
              <param-name>config/exercise</param-name>
              <param-value>/WEB-INF/exercise/struts-config.xml</param-value>
       </init-param>
       <init-param>
              <param-name>config/upload</param-name>
              <param-value>/WEB-INF/upload/struts-config.xml</param-value>
       </init-param>
</servlet>

Discuss in detail



Copyright © 2002 - 2010 JavaGalaxy.com,
All Rights Reserved Advertise| Feedback| Contact us| Terms of Use| Privacy Policy|

Help us to keep serving you better.
If you find any part of this site useful please support the site by linking to us