aspose file tools
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
Register / Login
JavaRanch » Java Forums » Frameworks » Struts
Reply 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.
 
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: Sturts Action servlet init params in web.xml file
 
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
Parsing error processing resource path /WEB-INF/struts-config.xml
error comes while running the struts application please see the source code for detail