I'm working in google app engine and I'm attempting to set up my servlets like this:
Would go to one servlet, while...
would go to another servlet, specifically written to handle subAction_A
How can I define this in my web.xml to make this happen? I've found some stuff on google using the url-regexp, but that doesn't really look like its supported anymore, or at least not on the platform I'm using (Google App Engine, Web Application Project from Eclipse plugin).
Any suggestions on how to do this in Google App Engine? I can't seem to find a clean way to do this without having to write the code myself to parse out the url. Should I just make one servlet, map everything to that, and then do rewriting myself?
preguntado el 27 de agosto de 11 a las 22:08
You can't. The servlet url mapping support is very limited. You can:
- use spring-mvc (or another action web framework) to define controller method patterns
- provide the parsing logic yourself, if it's simple and it is just an individual case