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]

Reply via email to