Hi, maybe off track but nevertheless do i have to map a resource file as
i want to include a cascade style sheet that my company use on our
web-site. Thus i have created a resource file beneath
/WEB-INF/resource/bbnpa.css.

Please point me in the right direction cheers.Chuck

"Jon.Ridgway" wrote:
> 
> Hi Manoj,
> 
> Note the application init-param below. So struts will look in
> classes/net/itwa for the resource file in this example running under Tomcat.
> 
> Snip...
> 
> <!-- Action Servlet Configuration -->
>   <servlet>
>     <servlet-name>action</servlet-name>
>     <servlet-class>org.apache.struts.action.ActionServlet</servlet-class>
>     <init-param>
>       <param-name>application</param-name>
>       <param-value>net.itwa.ApplicationResources</param-value>
>     </init-param>
>     <init-param>
>       <param-name>config</param-name>
>       <param-value>/WEB-INF/struts-config.xml</param-value>
>     </init-param>
>     <init-param>
>       <param-name>debug</param-name>
>       <param-value>2</param-value>
>     </init-param>
>     <init-param>
>       <param-name>detail</param-name>
>       <param-value>2</param-value>
>     </init-param>
>     <init-param>
>       <param-name>validate</param-name>
>       <param-value>true</param-value>
>     </init-param>
>     <load-on-startup>2</load-on-startup>
>   </servlet>
> 
>   <!-- Action Servlet Mapping -->
>   <servlet-mapping>
>     <servlet-name>action</servlet-name>
>     <url-pattern>*.do</url-pattern>
>   </servlet-mapping>
> 
> Jon.
> 
> -----Original Message-----
> From: Wes Bramhall [mailto:[EMAIL PROTECTED]]
> Sent: 06 June 2001 15:20
> To: '[EMAIL PROTECTED]'
> Subject: Q: How to add .props files to web.xml
> 
> Sorry for being a complete newbie, but what is the XML for adding this file
> to web.xml?
> 
> ApplicationResources.properties
> 
> Thanks much,
> -Wes
> 
> -----Original Message-----
> From: Manoj Deb [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, June 05, 2001 10:57 PM
> To: [EMAIL PROTECTED]
> Subject: RE: More help Plz: Exception thrown processing JSP page...
> 
> You can keep it in any dir in web tier, but there should be an entry in
> web.xml.
> 
> Rgds,
> Manoj

Reply via email to