Hi David, I'm afraid I don't understand your solution. I'm using Struts 1.1, but I don't know what you mean by contextRelative="false". It doesn't seem to be an attribute on the img or image tags. Also, I need a solution that will work with plain old html tags as well, not just with Struts html tags, since as I mentioned, some of the images are background images and I can not use html:img with that.
Could you please explain further. Thanks -----Original Message----- From: David G. Friedman [mailto:[EMAIL PROTECTED] Sent: Wednesday, March 30, 2005 3:28 AM To: Struts Users Mailing List Subject: RE: REPOST: Relative URLs Dear Tarek, Action example URL: http://server/my-application/my-module/doSomething.do Resulting JSP's image example UR: http://server/my-application/images/some-image.gif What happens when you use html:img with (depending on your version of Struts): a) contextRelative="false" [for 1.1 or earlier] b) module="" [for 1.2 or newer] Then add your src="/images/some-image.gif". That SHOULD keep your module relative to your webapps "/images" directory and NOT CARE what your webapp name is or someday changes into instead of "/my-application" .... For more details, skim the HTML taglib userGuide at: http://struts.apache.org/userGuide/struts-html.html#image Regards, David --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]