File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Servlets and the fly likes form contents Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Java Interview Guide this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "form contents" Watch "form contents" New topic

form contents

sushant prabhu
Ranch Hand

Joined: Mar 22, 2001
Posts: 66
i hav a form in html . I am taking the contents of the form in a jsp. i am matching the form values with the database and if the registered name is already in use i redirect him back to the front page . now i want all the values which he has entered to remain as it is in the redirected page and require the user to only enter the invalid form fields.
i dont know about client side scripting . how du i achieve the same in jsp or servlet

Sushant Prabhu<br />SCJP2<br />SCWCD<br />OCA9i
Mahajan Bhupendra
Ranch Hand

Joined: Dec 01, 2000
Posts: 118
Hi sushant
put all the values coming from form in session object
if they match the required crieteria
at the end instead of redirecting add the form code itself
in jsp code..
and put the values in appropriate fields taking them from
session object if they are not equal to null
i think this should solve the problem..

<B>Bhupendra Mahajan</B>
I agree. Here's the link:
subject: form contents
It's not a secret anymore!