Hello to all. In my program when it happens a condition of error desire for
showing a page with static content which is recorded in the server. I
understand that this can be done with the use of:
RequestDispatcher dispatcher =
getServletContext().getRequestDispatcher("/Error_Page.html");
 if (dispatcher = = null) {
    // No dispatcher means the html file can not be delivered
    res.sendError(res.SC_NO_CONTENT);
 } else {
    // Send the user the bookstore's opening page
    dispatcher.forward(req, res);
}
But I have problems so that the program does not find the page and
dispatcher objetc is null. In other occasions it shows the same page to me
in which servlet it begins.
Any aid will be appreciated.
Thanks

Galo

___________________________________________________________________________
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

Reply via email to