Hi All,
I am trying to write a controller
servlet that redirects to
JSP, HTML or to another servlet by looking at the request URL. It also has to handle form submits and process it before forwarding.
The servlet maaping as:
This creates a problem. If a redirection is done by line-4 (in below code) then as the redirected URL has /guest, the request is again caught by Controller and again a forward happens, this creates an infinite loop. The resources have to be under the "guest" folder
This is the code use for redirection:
Is there a quick and dirty way to put together such a controller servlet?