Hi,
I am not able to obtain the RequestDispatcher object from my servlet.
The code is as follows :
String targetURL = "../LogonPage.jsp";
RequestDispatcher dispatcher = getServletContext().getRequestDispatcher(
targetURL);
if (dispatcher != null) {
System.out.println("...dispatcher avlbl. ");
dispatcher.forward(request,response);
}
else{
System.out.println("...dispatcher NOT avlbl.");
response.sendRedirect(targetURL) ;
}
My servlet is in the servlets directory and my LogonPage.jsp is in the
html/public_html directory in the IAS appserver.
Any pointers as to where i am going wron would be greatly apreciated.
Regards,
Rakesh
___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".
Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html