Use the errorPage Attribute in the page used as the form like this:
<%@ page errorPage="Relative URL" %>
and use the isErrorPage Attribute in the page that u want errors to be
displayed like this:
<%@ isErrorPage="true" %>
In this errorPage, u can use the "exception" variable to print the errors as
u do normally.
Sagar
-----Original Message-----
From: Nabe Anju [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, April 25, 2001 9:49 AM
To: [EMAIL PROTECTED]
Subject: Error page to be displayed on a separate window
Hi,
I am using JSP -servlet-bean technology for my application. The requirement
is that when a servlet is invoked from a FORM with a target window, then
the data returned back from the servlet should be displayed onto that ; but
in the case of error, the error msg should be displayed on a separate
window.
Basically, if the user is trying to update some data (in a form) then the
error page should be shown in a separate window giving him an option to
correct the mistakes rather than overlaying the data window .
Is there a way to do it? Pls help.
Thanks.
===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST
DIGEST".
Some relevant FAQs on JSP/Servlets can be found at:
http://java.sun.com/products/jsp/faq.html
http://www.esperanto.org.nz/jsp/jspfaq.html
http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST".
Some relevant FAQs on JSP/Servlets can be found at:
http://java.sun.com/products/jsp/faq.html
http://www.esperanto.org.nz/jsp/jspfaq.html
http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets