Get your CodeRanch badge!*
The moose likes Struts and the fly likes Sturts Action servlet init params in web.xml file Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Sturts Action servlet init params in web.xml file" Watch "Sturts Action servlet init params in web.xml file" New topic
Author

Sturts Action servlet init params in web.xml file

nand rai
Greenhorn

Joined: Feb 17, 2009
Posts: 27



<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>
<init-param>
<param-name>config/App/admin</param-name>
<param-value>/WEB-INF/struts-config-admin.xml</param-value>
</init-param>
<init-param>
<param-name>config/App/appointment</param-name>
<param-value>/WEB-INF/struts-config-Logic.xml</param-value>
</init-param>
<init-param>
<param-name>config/App/profiles</param-name>
<param-value>/WEB-INF/struts-config-profiles.xml</param-value>
</init-param>

</servlet>


How does the ActionServlet knows to load all the init params?
David Newton
Author
Rancher

Joined: Sep 29, 2008
Posts: 12617

That's what servlets do: load their init params.
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Sturts Action servlet init params in web.xml file
 
Similar Threads
The method doMarkDoneOutboundCall(null, String) is undefined for the type Done_jsp
Parsing error processing resource path /WEB-INF/struts-config.xml
java.lang.NullPointerException at the starting of tomcat 6.0
error comes while running the struts application please see the source code for detail
Need related struts subapps in one struts app