Please remember that in both forward and send re-direct, execution of the current servlet will resume unless you put a return statement after the forward or re-direct statement.
if (dispatcher!=null) { dispatcher.forward(request, response) ; return; } -----Original Message----- From: Kwok Peng Tuck [mailto:[EMAIL PROTECTED]] Sent: 08 October, 2002 12:42 AM To: [EMAIL PROTECTED] Subject: Forwarding in servlets. Is there any way besides the following : request.setAttribute("selectedScreen", request.getServletPath()) ; RequestDispatcher dispatcher = request.getRequestDispatcher("/test.jsp") ; if (dispatcher!=null) { dispatcher.forward(request, response) ; } to forward a request to a jsp page. Is it possible to use response.sendRedirect like in jsp ? Any suggestions will be great. -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]> -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>