Kevin:

Well, ok, you could at the time of (I am assuming server-side) validation set some session variables and then in your jsp check if those session vars are nonnull and if so set the "value" of the field to be the value of that session var and if not set it equal to the empty string.

Geeta

Kevin Goethe wrote:

 Is there another way without diving into struts!   It sounds like I need to spend time in the future to learn about struts, but for now...  I need another solution.

At 02:50 PM 1/30/2003 -0500, you wrote:

Kevin:

Have you considered using Struts?  It neatly solves this as well as many other problems. (plus is pure pleasure to work with!! :)

Regards,
Geeta

Kevin Goethe wrote:

 Use pure server-side (_javascript_ not an option)

Question:
I need a way to preserve the input fields entered on a form after field validation occurs in the servlet.   If input error is detected during servlet validaton, how can I redisplay input form with values the user entered?

I am using a servlets not jsp.

Kevin Goethe
Senior Analyst
Northern Michigan University
1401 Presque Isle
501 Cohodas Building
Marquette, MI  49855

email:  [EMAIL PROTECTED]
phone: 906-227-1253
fax:      906-227-1890

Kevin Goethe
Senior Analyst
Northern Michigan University
1401 Presque Isle
501 Cohodas Building
Marquette, MI  49855

email:  [EMAIL PROTECTED]
phone: 906-227-1253
fax:      906-227-1890

Reply via email to