> Is there any way to retain the current HTML page even after the form
> is submitted to servlet.

Do you mean an equivalent for the 'BACK'-button?
You can do this in JavaScript with history.go(-1);

> I want a error message to be shown over Page A itself, other
> wise show page B.

Or do you want a new page with all the data AND an errormessage?

I suppose when you first call page A, all the INPUT-tags are empty.
Why don't you change the code of the servlet that generates page A
so that the INPUT-tags aren't always empty? If you post arguments
to the servlet, the correspondant INPUT-tags get these arguments as
default value, otherwise they remain empty. This way you can
rebuilt your page A every time someone makes a mistake...
--
-------------------------------------------------------------------
Bruno Lowagie           Academisch Rekencentrum Universiteit Gent
Tel : 09/264.48.14      e-mail : [EMAIL PROTECTED]
-------------------------------------------------------------------

___________________________________________________________________________
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