You may want to check that your page isn't set to not cache anything
otherwise it wont keep any values when you go back.  If you don't find an
answer why don't you send the info back to your form?  You should just be
able to create a dynamic form that accepts a post and takes the values
passed to it as the default values for the username and the first name.

        ~Matt Penner

 -----Original Message-----
From:   A mailing list for discussion about Sun Microsystem's Java Servlet
API Technology. [mailto:[EMAIL PROTECTED]]  On Behalf Of s
saravanan
Sent:   Thursday, November 23, 2000 8:09 AM
To:     [EMAIL PROTECTED]
Subject:        How to retain value?

Hi everybody,

    I have a doubt regarding passing of values from servlet program.

My doubt is:

I have form with 2 text fields for Username and Firstname. When i enter the
values and i submit , it will check with the database for username in the
server whether username is there or not. If it not there both the values
must insert otherwise it should say some message that "username is already
in use" and there one button called "Goback" is there.

Upto this i have done it is working fine. But if i press GoBack button it
goes the previous page(i used response.sendRedirect(path)
But if i go that page , the values of first name is not retained.

So i need the value to be retained---this how to be done?

Help me in this !! Urgent!!!

Thanks,
saravanan.s





____________________________________________________________________________
_________
Get more from the Web.  FREE MSN Explorer download : http://explorer.msn.com

___________________________________________________________________________
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