Please consider this scenario. I have written two projects in Proj1 and Proj2 (in iPlanet)
Proj1 has a servlet called servlet1
Proj2 has a servlet called servlet2
In servlet1 i want to dispatch request (forward) to servlet2
But the code does not forward request in iplanet. It gives an error like this
error: SERVLET-fileext_not_set: Extension of file not found, while displaying static content
the same code works fine in Netscape Application Server.
i tried to forward request from one servlet1 to servlet3 in the same project in iplanet like this
getServletContext().getRequestDispatcher("/servlet3").forward(request,response) it worked fine but the control came back to servlet1. why is it so. The servlets contain only system.out.println statements.
can any one please tell me what to do.
thanx in advance
Originally posted by kyle bober:
YOu may want to try servlet chaining. Instead of using the forward method use the include method. Then call the servlet you want to go to fro the request object. This will allow you to obtain the data in the request object of the other servlet(s). A reminder though in order to place the object(data) into the request object they must already have been instantiated within your current request object.