Dear Sunita,

I too had the same problem. I have thought of a solution which is described
below..

I am currently writing the code for this. Do tell me if any one else has a better
idea.

You will have to generate a different page modified in such a way that the VALUEs
in the tags are set to what the user had entered.

Therefore when you re-create the page to show the user what he had entered the
html which your servlet generates should look something like this

<input type=text size=30 name="Fname" value= "Alex " >

The value field with value "Alex" will come from the
request.getParameter("Fname").

After this is handeled I don't think indicating the faulty field will be a
problem.

Hope this helps. Do tell me if you find a better way of doing it.

Regards,

Pradeep Shekade

Sunita Sairaman wrote:

> Hi
>
> I am validating fields on my form using servlets.
>
> I need to repost the form with the values entered by the user, when certain
> fields do not go through validation.
> It should indicate which field was not right & also a note at the beginning of
> the HTML form indicating all the faulty fields.
> HOW DO I DO THIS???
>
> ____________________________________________________________________
> Get free email and a permanent address at http://www.netaddress.com/?N=1
>
> ___________________________________________________________________________
> 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

___________________________________________________________________________
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