In that case, I'd recommend using a forward to define the path then using
html:rewrite forward="name" to do this.

HTH,

Matt

--- Greg Hess <[EMAIL PROTECTED]> wrote:
> Matt,
> 
> I am following Ted's struts-stub example and using a directory structure
> within WEB-INF to hold all my pages(jsp, html).
> I like this approach as it forces all requests for my pages to go threw the
> ActionServlet(controller) and also protects all my pages from unauthorized
> access. I can do all my login checks in the Action an be assured no one will
> be able to bookmark a page. I feel my web applications are different than my
> web site. The web site has static pages and can allow the visitor to
> traverse the site any way he/she wishes. The web application is a controlled
> sequence of processes, generally each page has data requirements that must
> be met, I don't want my clients to be able to access the pages out of turn.
> So my images cannot reside within the WEB-INF dir and I am required to
> supply a context path instead of a relative path.
> 
> Greg
> 
> -----Original Message-----
> From: Matt Raible [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, February 19, 2002 3:19 PM
> To: Struts Users Mailing List
> Subject: Re: Struts support for body background image??
> 
> 
> why not just use a relative path "images/background.gif" and put images in
> the
> same directory as your JSPs?  Or you could use CSS to set this.
> 
> Matt
> 
> --- Jim Crossley <[EMAIL PROTECTED]> wrote:
> > The only problem with that is that you have to account for your
> > context path somewhere, and you probably shouldn't do that in your
> > resources properties file.  You'd have to do something like this:
> >
> > <body background="<%=request.getContextPath()%><bean:message
> > key='mybackground'/>">
> >
> > Kinda gross, huh?  Maybe there should be a struts <html:body> tag?
> >
> > -- Jim
> >
> > "Low, Liang" <[EMAIL PROTECTED]> writes:
> >
> > > I'll just do this
> > >
> > > <body background="<bean:message key="mybackground">
> > >
> > > and have mybackground refers to /images/background.jpg in
> > > ApplicationResource.properties
> > >
> > > Liang
> > >
> > >
> > > -----Original Message-----
> > > From: Greg Hess [mailto:[EMAIL PROTECTED]]
> > > Sent: Tuesday, February 19, 2002 11:25 AM
> > > To: Struts Mail List
> > > Subject: Struts support for body background image??
> > >
> > >
> > > Hi All,
> > >
> > > I would like to avoid writing a scriplet in my jsp to provide a
> background
> > > image.
> > > <body background="<%=request.getContextPath()%>/images/background.jpg">
> > > Does anyone know an alternate solution, or if Struts plans to provide a
> > > <html:body>
> > > tag in the future?
> > >
> > > Thanks,
> > > Greg
> > >
> > >
> > > --
> > > To unsubscribe, e-mail:
> > > <mailto:[EMAIL PROTECTED]>
> > > For additional commands, e-mail:
> > > <mailto:[EMAIL PROTECTED]>
> > >
> > > --
> > > To unsubscribe, e-mail:
> > <mailto:[EMAIL PROTECTED]>
> > > For additional commands, e-mail:
> > <mailto:[EMAIL PROTECTED]>
> >
> > --
> > To unsubscribe, e-mail:
> <mailto:[EMAIL PROTECTED]>
> > For additional commands, e-mail:
> <mailto:[EMAIL PROTECTED]>
> >
> 
> 
> __________________________________________________
> Do You Yahoo!?
> Yahoo! Sports - Coverage of the 2002 Olympic Games
> http://sports.yahoo.com
> 
> --
> To unsubscribe, e-mail:
> <mailto:[EMAIL PROTECTED]>
> For additional commands, e-mail:
> <mailto:[EMAIL PROTECTED]>
> 
> 
> 
> --
> To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
> 


__________________________________________________
Do You Yahoo!?
Yahoo! Sports - Coverage of the 2002 Olympic Games
http://sports.yahoo.com

--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to