Hi
I am tring to call a JSP page from the servlet. I have written the follwing code. The request is not forwared to the JSP. and the control remains in the servlet.
try {
// Set the attribute and Forward to UserLogin.jsp
RequestDispatcher rd =
getServletConfig().getServletContext).getRequestDispatcher("/jsp/UserLogin.jsp");
// forward the request and response to target
rd.forward(request,response);
return;
} catch (Exception ex) {
System.out.println("Caught Exception in Sending jpspage im Main Servlet : " + ex.getMessage());
}
I am tring to call a JSP page from the servlet. I have written the follwing code. The request is not forwared to the JSP. and the control remains in the servlet.
try {
// Set the attribute and Forward to UserLogin.jsp
RequestDispatcher rd =
getServletConfig().getServletContext).getRequestDispatcher("/jsp/UserLogin.jsp");
// forward the request and response to target
rd.forward(request,response);
return;
} catch (Exception ex) {
System.out.println("Caught Exception in Sending jpspage im Main Servlet : " + ex.getMessage());
}