Hi
I hope this is me being dumb but I have a working Struts application that
uses a *.do servlet mapping for ActionServlet
Because I found that the servlet spec doesn't allow partial URL mappings
for security (eg. I can't specify a url-mapping of '/pub*'), I must now
change my app to use /do/*
Seems like a fine idea, and Ted says its cool :)
So, I changed the servlet mapping to '/do/*' and references to '*.do' in my
JSPs.
Now my app sort of works but all relative links are now broken - CSS,
images, JavaScript files
e.g. I have a URL of '<rest of path>/do/header' and this is specified in
the config file as:
<action path="/header" forward="/WEB-INF/pages/header.jsp"/>
The page loads OK but the JSP references images like this:
<img src="images/find_obj.gif">
This used to work because images was a directory directly under the war
directory, but now, the image has a path of <img src
="/do/images/find_obj.gif"> which isn't found. Simarly for references to
CSS files and JS files.
why is the /do/ prefix being added?
Please could anyone tell me what I have to do to get my JS, CSS and images
to load without changing every reference to them in every JSP to include a
/do/?
Thanks
Rob
--
To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>