You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Jonathan M Crater <jo...@fanniemae.com> on 2001/09/27 19:06:44 UTC
Re: How pick up application wide settings in Struts?
passing an init-param to the action servlet would accomplish this:
<servlet>
<servlet-name>action</servlet-name>
<servlet-class>org.apache.struts.action.ActionServlet</servlet-class>
<init-param>
<param-name>bootfile</param-name>
<param-value>path/to/bootfile</param-value>
</init-param>
...
</servlet>
Peter Pilgrim wrote:
> Is there a way to set parameters in Struts
> like Servlets Initialisation Parameters in the web.xml file?
>
> I want to able to specify a boot file property, does Struts have
> its own mechanism in the struts-config.xml file or do you
> have use the web.xml file?
>
> --
> Peter Pilgrim | | ++44 (0)207-545-9923
> .... \ \ ___ / / ... .
> - ---- ( * ) --- --
> _____________________________Cafe_Savannah,_San Antonio,Ibiza__
>
> --
>
> This e-mail may contain confidential and/or privileged information. If you are not the intended recipient (or have received this e-mail in error) please notify the sender immediately and destroy this e-mail. Any unauthorized copying, disclosure or distribution of the material in this e-mail is strictly forbidden.