debugs at request dispatcher
Hi,
I'm new to java , I want to forward a request to jsp page from a servlet.
It debugs at the request dispatcher line
Here is the code:
public class Transfer extends HttpServlet {
public void service( HttpServletRequest req,HttpServletResponse res )
throws ServletException, IOException{
RequestDispatcher rd = req.getRequestDispatcher("/final.jsp");
System.out.println("received rd obj");
if(rd!=null)
rd.forward(req ,res );
System.out.println("forwarded");
}
}
pls let me know how to forward the page.
A clear code would be much help full.
Thanks
frnd.

