If I understand your problem, your JSP generates some
"<img src=...>"
or "<script scr=...>"
and you get "404 broken link" or something like this for this
ressources.

Perhaps you use relative path to your images and scripts
(src="../../images/foo.gif").
You should use absolute path with <html:rewrite
page="/images/foo.gif">
or <html:img> tags.

They're is no reaseon you cannot access images or scripts from a jsp
in WEB-INF beacause the jsp does'nt try to access anything, the
genrated HTML does. This way relative path is calculated from the URL
shown in browser ("/service/foo.do") that has nothing to do with your
JSP path.

Nico.


Hi, I have my JSP's behind WEB-INF, is there a way of mapping other
directories behind WEB-INF so that the images and scripts included on
my
JSP's can be accessed from there as well.  It's OK having the JSP's
there to stop external forces from accessing them directly but now
they
can still access my images and scripts directly.

Regards,
Johan Wasserman


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to