• Post Reply Bookmark Topic Watch Topic
  • New Topic

Possible to map all URLs to a servlet except one?  RSS feed

 
Dave Alvarado
Ranch Hand
Posts: 436
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

In my servlet mapping file, I want to map all URLs matching /meetings/* to a servlet, except if the URL is /meetings/index.jsp . Is that possible to do in web.xml and how? I'm using Tomcat 6.0.26.

- Dave
 
Devaka Cooray
Marshal
Posts: 5568
713
Chrome Eclipse IDE Google App Engine IntelliJ IDE jQuery Postgres Database Tomcat Server
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Use two servlet-mapping elements.
First one should map /meetings/index.jsp to your first servlet,
and the other one should map /meetings/* to the other servlet.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!