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 | 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.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Sturts Action servlet init params in web.xml file