Win a copy of The Java Performance Companion this week in the Performance forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Problem with more than one url-mapping

 
Sverre Moe
Ranch Hand
Posts: 110
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
For a Servlet (In my case a DispatcherServlet) I have two mapping.



But that last url mapping is wreaking havoc with my Struts mapping



However if I try /test/* instead of /* it works fine, but I want /*
How could this be fixed?
 
Ulf Dittmer
Rancher
Posts: 42968
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
It looks like you need to restructure your web app URLs. Mapping "/*" catches "/execute/*" as well, so that won't work if you want to use both servlets.
 
Sverre Moe
Ranch Hand
Posts: 110
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Ulf Dittmer:
It looks like you need to restructure your web app URLs. Mapping "/*" catches "/execute/*" as well, so that won't work if you want to use both servlets.


I figured as much. I had to create a new sub-mapping /new/*
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic