Sorry, I just realized my problem is a bit different… (nothing like a sleeping night)
The point is not that /edit/* is being redirect to the same url-pattern as /* but there is a security-constraint tag that redirects /edit/* to /Login.jsp which matches to /* then…
Sounds like the root problem is that a call to /Login.jsp matches your /* pattern, right? Simple solution: add a servlet and mapping for that JSP file. E.g.
I’ve done a bunch of this kind of thing recently. I promise I’ll write a blog about it and share here “real soon.” What’s cool about the above is that you can actually use it with “hidden” JSP files, for instance ones under WEB-INF/jsps that a servlet forwards to. What’s not cool is that X JSPs need X declarations and X mappings (as far as I can tell).