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]>

Reply via email to