I'm not sure whether it is legal, but Tomcat 4.0b7 doesn't like it very much. 

I'm trying to forward a request back to the same servlet with a different query
string that dispatches the way the request is handled within the servlet.

Tomcat4.0b7 gets an error trying to allocate the servlet again from the invoker.

In my servlet service handler:

String theNewURL = "/servlet/" + getClass ().getName () + "?GOTO=NextScreen";
theNewURL = theResponse.encodeUrl (theNewURL);
ServletContext theServletContext = theDBServlet.getServletContext ();
theServletContext.getRequestDispatcher (theNewURL).forward (theRequest,
theResponse);

Reply via email to