aspose file tools
The moose likes Struts and the fly likes Three struts-config files specified in the webapp's web.xml file ,Which one is Loading first? Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Frameworks » Struts
Reply Bookmark "Three struts-config files specified in the webapp Watch "Three struts-config files specified in the webapp New topic
Author

Three struts-config files specified in the webapp's web.xml file ,Which one is Loading first?

Rama chandranS
Greenhorn

Joined: Jan 13, 2012
Posts: 3
Hi All,
Three struts-config files specified in the webapp's web.xml file ,Which one is Loading first?
Here is My web.xml file. Please Help

<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-config1.xml,/WEB-INF/struts-config2.xml,/WEB-INF/struts-config3.xml</param-value>
</init-param>
<load-on-startup>1</load-on-startup>
</servlet>
candid java
Greenhorn

Joined: Jan 13, 2012
Posts: 14
I hope you the following code will hlep you

<param-name>config</param-name>
<param-value>/WEB-INF/struts-config1.xml
</param-value>
<param-name>config</param-name>
<param-value>/WEB-INF/struts-config2.xml
</param-value>
<param-name>config</param-name>
<param-value>/WEB-INF/struts-config3.xml
</param-value>

if you are not cleared refer this link http://candidjava.com/basic-program-using-struts-1x-with-example-program-in-eclipse

 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Three struts-config files specified in the webapp's web.xml file ,Which one is Loading first?
 
Similar Threads
java.lang.NullPointerException at the starting of tomcat 6.0
Need related struts subapps in one struts app
The method doMarkDoneOutboundCall(null, String) is undefined for the type Done_jsp
Combining two different struts modules of a big application
How to have multiple struts-config.xml