aspose file tools*
The moose likes Servlets and the fly likes Problem with more than one url-mapping Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Servlets
Bookmark "Problem with more than one url-mapping" Watch "Problem with more than one url-mapping" New topic
Author

Problem with more than one url-mapping

Sverre Moe
Ranch Hand

Joined: Jul 10, 2007
Posts: 110
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
Marshal

Joined: Mar 22, 2005
Posts: 42950
    
  70
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

Joined: Jul 10, 2007
Posts: 110
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
 
subject: Problem with more than one url-mapping