struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Paweł Wielgus <>
Subject Re: Base Path for Page Resources Incorrect
Date Sun, 16 May 2010 06:09:46 GMT
Hi Dane,
are You calling resources with absolute path?
< img src="/absolute/path/to/image.jpg />
or relative?
< img src="relative/path/to/image.jpg />

If relative then it is working like You described,
if absolute then post your code.

Best greetings,
Paweł Wielgus

2010/5/14 Dane <>:
> I'm testing a Struts 2 application; resources included in the page--images,
> stylesheets--do not point to their absolute location, but instead adopt the
> path of the current page's URL and simply append their location to the end
> of it. I discovered that if I use the <base> tag in the <head> of the
> document and redefine the base to the absolute base path of the application,
> the resources get called and the page works fine, no matter how deep into
> the application's directory structure I navigate.
> Where can I disable this behaviour? Explicitly declaring a new base is not
> an option; I used it to simply test if the base was being rewritten.
> All insight will be appreciated.
> ---------------------------------------------------------------------
> To unsubscribe, e-mail:
> For additional commands, e-mail:

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message