Tim,
I normally set up a mapping like the following for the spring dispatcher servlet:
Code:
<servlet-mapping>
<servlet-name>controller</servlet-name>
<url-pattern>*.htm</url-pattern>
</servlet-mapping>
I have no files with an .htm extension actually in the web app. This is a dummy extension that I use to invoke the spring mvc. I make sure the request urls have this extension in my pages and that they are correctly in the mappings in the spring context file.
I also sometimes have another servlet (maybe the axis servlet) that I need to map. So I normally have something like:
Code:
<servlet-mapping>
<servlet-name>axis</servlet-name>
<url-pattern>/axis/*</url-pattern>
</servlet-mapping>
I just need to ensure that I tack on the /axis/ after the web app context name to make sure the mapping is hit.
Based on these mappings, all the other files requested (*.html, *.css, etc.) will be servered by the web server.
Hope this helps.
-Russ.