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.

[670 byte] By [goodprograma] at [2007-11-27 1:24:39]
# 1
> It debugs at the request dispatcher linePlease elaborate. What do you mean with "debugs" in this context? What is happening? Do you get any exceptions in the log?
BalusCa at 2007-7-12 0:16:12 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...
# 2
hi Balu,I dont get any exceptions, on sending request to the server it automatically goes to the debug mode, and cursor points to the request dispatcher line.pls let me know the sol.Thanks,Raghu
goodprograma at 2007-7-12 0:16:12 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...
# 3
Eclipse? Then remove the breakpoint and/or don't run in debug mode until you know how it works.
BalusCa at 2007-7-12 0:16:12 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...