Hi,
i have simple servlet mapping Problem with Tomcat, its not specialy for spring but i hope someone can help me.
if i call url: /admin/images/test.png than servelt 1 should handel this request
if i call /someotherurl/xy.png than servelt 2 should handel the request.
so i wrote the following servlet mapping:
but when i now call: /admin/images/test.png i get a 404 error, even the directorys and files are correct und available.Code:<servlet-mapping> <servlet-name>Servlet1</servlet-name> <url-pattern>/admin/images/*</url-pattern> </servlet-mapping> <servlet-mapping> <servlet-name>Servlet2</servlet-name> <url-pattern>*.png</url-pattern> </servlet-mapping>
os it seems that the servlet spec for servlet mapping is not working right in Tomcat.
can anyone confirm this?
or where is my mistake?
hope someone can help me.
thank you very much.
mfg Gideon


Reply With Quote