wood burning stoves 2.0*
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 Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "form contents" Watch "form contents" New topic
Author

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..
Bhupendra

<B>Bhupendra Mahajan</B>
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: form contents
 
Similar Threads
How to store parameter values
Another simple question
Forms in Jsp
URGENT Help Needed ...!!
How to update Session variable with Form Data ?