Hi Max,
You did the right thing
However you need to be aware of some more changes needed in larger Struts applications.
Replacing *.do for the static content with direct URL for the static content is the right step. However that is not all.
Here is my experience regarding splitting of static and dynamic content for several production deplyments I have in the past using Struts.
1) Do not use the <html:base/> tag. This tag will set the base href to be the url to the current page. Here is a sample base href.
<base href=�http://www.foobar.com:8080/App1/abc/CustomerDetail.jsp�/>
"App1" is the web application context and "abc" is the directory containing the
jsp.
When seperating static and dynamic contents, the base href should ideally be
http://www.foobar.com/App1. In such situations (as is the case in all production deployments), I roll out my own BaseTag that generates the above URL.
(In your case the gif came up fine even without making this change because your JSP was at the top level - not under subfolders.)
2) Next create a
doc root in the Http Server with the name "App1" and move static content there.
3) If there is a suffix mapping (*.do) used to redirect to a static content, replace it with the URL for static content.
Hope this helps.