You could always call the servlet with a parameter containing the error
type or error number.
Example: .../applicationTest/login?err=301
where 301 is error message "You failed to login" or something.
Aasim
<[EMAIL PROTECTED]> To: [EMAIL PROTECTED]
Sent by: "A mailing cc:
list for discussion Subject: Redirection
about Sun
Microsystem's Java
Servlet API
Technology."
<[EMAIL PROTECTED]
VA.SUN.COM>
05/27/2003 01:49 PM
Please respond to "A
mailing list for
discussion about Sun
Microsystem's Java
Servlet API
Technology."
Dear Servlet Interest users,
I have an online ordering application. Whenever the user enters some data
in the form, I check whether the information is valid or not (using
information from a database) and depending on that, I redirect the user to
the appropriate error page-using
"response.sendRedirect(respectiveErrorURI)" function.
However, the user has to use the back button on the browser and go back to
the previous page and then correct the error and try to submit it again.
Can I display the error message on the same page along with the form that
he/she submits?
Is there some way I can achieve this. I would appreciate any help in this
regard.
Thanks!
--Aasim.
Do you Yahoo!?
The New Yahoo! Search - Faster. Easier. Bingo.
___________________________________________________________________________
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