Yep... That will work too. :) Jonathan wrote: > why put it in the session when you can put it in the application scope? > I say this because heavily filled session objects have caused us problems in > weblogic, and it is really for the application anyway > > ----- Original Message ----- > From: "Peter Alfors" <[EMAIL PROTECTED]> > To: <[EMAIL PROTECTED]> > Sent: Thursday, June 07, 2001 9:56 AM > Subject: Re: How to add .props files to web.xml > > > You do not need to specify the style sheet in the web.xml file. You can > just > > point to it in each of your pages. > > However, if you wanted it configurable, you could over-ride > ActionServlet.init() > > to take in the location of the style sheet and save it as an attribute of > the > > session. Then, each of your pages could use the session attribute as the > link. > > Then, if you decide to change sheets, rename the file, etc, there is only > one > > place to update. > > > > HTH, > > Pete > > > > "kuma.cra" wrote: > > > > > 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 > >
begin:vcard n:; x-mozilla-html:FALSE org:<BR><IMG SRC="http://www.irista.com/logo/irista.gif"><BR><BR><FONT Color=#000080><FONT SIZE=2><B>Bringing Vision to Your Supply Chain adr:;;;;;; version:2.1 end:vcard