Hi,
I'm using Tomcat 6.0.26. I'm having an issue mapping a url-pattern to a
servlet and was wondering if you can see what I'm doing wrong. In my
WEB-INF/web.xml I have
<servlet-mapping>
<servlet-name>MusicVenueServlet</servlet-name>
<url-pattern>/play/music/venues/*</url-pattern>
<url-pattern>/play/music/includes/venue-listing</url-pattern>
</servlet-mapping>
But visiting the URL
http://mydomain.com/context-path/play/music/includes/venue-listing.jsp?id=3&type=venues
gives a 404. Oddly, if I change the above to
<servlet-mapping>
<servlet-name>MusicVenueServlet</servlet-name>
<url-pattern>/play/music/venues/*</url-pattern>
<url-pattern>/play/music/includes/*</url-pattern>
</servlet-mapping>
everything maps fine. But I don't want to map everything in that directory,
only a single file. Any ideas?
Thanks - Dave
--
View this message in context:
http://old.nabble.com/Servlet-mapping-issue-tp28984816p28984816.html
Sent from the Tomcat - User mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]