File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Problem with more than one url-mapping

 
Sverre Moe
Ranch Hand
Posts: 110
  • 0
  • 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
Pie
Posts: 42966
73
  • 0
  • 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
  • 0
  • 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/*
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic