hi i have two sevlets. The request always comes to first servlet with one parameter. I would like to send the request to another servlet depends on the parameter value.
can some one help on this. how we can send the request from one sevlet to another?
Joined: Mar 22, 2005
You could either do a client-side response.sendRedirect or a server-side RequestDispatcher.forward (or include). The latter will preserve request information and attributes (which are lost when doing the former).