struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Richards, Devin N (Devin)" <de...@lucent.com>
Subject RE: Losing images When Using Struts-Tiles.jar with Websphere 4.02 or 4.03 or 4.04
Date Wed, 14 Aug 2002 14:47:16 GMT
Which tag are you using? <html:img> or <html:image>

remember that the src attribute is relative to the web server, while the page attribute is
relative to the WAS. Thus

<html:img src="/images/logo.jpg" />

Would get a file named logo.jpg from the WebServer's doc-root/images directory, while

<html:img page="/images/logo.jpg" />

Would get a file named logo.jpg from the context-root.war/images directory on the WAS

-Devin

-----Original Message-----
From: Tin Pham [mailto:tin.pham@rogers.com]
Sent: Wednesday, August 14, 2002 10:41 AM
To: struts-user@jakarta.apache.org
Subject: Losing images When Using Struts-Tiles.jar with Websphere 4.02 or 4.03 or 4.04


Has anybody here every implented templates or tiles in Struts with Websphere 4.02 and up?
I've tried wars from everywhere;
struts-template.war (from release 1.0.2) to struts-tiles.war (from milestone Struts 1.1 Beta2)
to the Tiles http://www.lifl.fr/~dumoulin/tiles/ provided versions.

I don't get any kind of error messages during compilation. The content actually shows up as
the header footer ect load, but

1) images do not show up, it's as if the server can't see images
2) any default files to load ie index.jsp set in the web.xml does not work

However, everything works fine in WSAD 4.0.2 and 4.0.3!

Any kind of input would be greatly appreciated.

Regards,
Tin Pham

--
To unsubscribe, e-mail:   <mailto:struts-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:struts-user-help@jakarta.apache.org>


Mime
View raw message