Hey Stewart, This is a question which would be better asked on Stack Overflow, since it's not specifically about App Engine. I'll be happy to provide an answer, but be sure to check the context of the forum in future, since Stack Overflow doubtless has a lot more users and actually has answers on this exact question already. You'll be more likely to find an answer when considering the context of the forum. So:
My testing doesn't show that /* is behaving this way when deployed to production. It matches any number of nested slashes without problem. Although then again, I'm running a standard App Engine java runtime, which runs on Servlet 2.5 spec <https://cloud.google.com/appengine/docs/java/runtime>. However, regardless, there's a reason you don't want to use this pattern anyways, since it causes a StackOverflowError when you want to use RequestDispatcher#forward(), which is a reasonably useful method. As explained in this StackOverflow answer <http://stackoverflow.com/a/10402328/4270992>, you should use a ServletFilter on /* which can perform routing as needed. Cheers, Nick Cloud Platform Community Support On Monday, May 16, 2016 at 3:59:32 PM UTC-4, Stewart Sims wrote: > > Is it possible to map a Java servlet to '/' like you can with any Servlet > container (as clarified in the Servlet 3 spec) to serve every request, > other than those specifically mapped to other URL patterns? > > Setting any servlet mapping path (URL pattern) to '/' seems to break > deployed apps, and using '/*' doesn't seem to capture requests beyond that > level in the hierarchy (e.g. only works for /someResource and not > /images/someResource or /scripts/someResource). > -- You received this message because you are subscribed to the Google Groups "Google App Engine" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at https://groups.google.com/group/google-appengine. To view this discussion on the web visit https://groups.google.com/d/msgid/google-appengine/07104cbf-127c-4088-97f8-ad900f366231%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
