Hi Satish Let me understand what you are trying to do : you are using html to get the user to input the user-id and password and if it is incorrect you send a page which says that the user-id and password is incorrect and you want to reload the page on which the user had entered the user-id and password right. If this is the case why not use Javascript's back() function which will keep form values intact. Chitra Satish Talim wrote: > Hi Shashi, > > Can't I achieve this without using Applets? Just HTML and Servlets. Any > sample code to help me out? > > Satish > > At 10:17 AM 2/24/99 +0530, you wrote: > >Basically you want the data which is being entered by the Customer to be > >persistant. Since applet by itself can't keep all the data persistant, > >the easiest method is to keep track of it in the Servlet running at the > >server. Another easy method is let the Applet start communicating with > >the Servlet, and also show the status of User Name verification. So, > >steps will be > >1. Applet will send data about the Login customer to Servlet > >2. Servlet will verify the customer. > >3. If there is an error, Sevlet will send back some data to Applet, > >saying the User name is invalid. > >4. The applet will display the same information. > >5. So there is no need for you display a page just show that user has to > >typed wrong info. > > > >I hope this will help you... > > > >> -----Original Message----- > >> From: Satish Talim [SMTP:[EMAIL PROTECTED]] > >> Sent: Tuesday, February 23, 1999 8:20 PM > >> To: [EMAIL PROTECTED] > >> Subject: Store info in Servlet > >> > >> Hello all, > >> > >> I have a simple application where a Customer enters his/hers Customer > >> details and a UserName and Password on a Customer web page. This > >> information is passed on to the servlet which checks the > >> UserName/Password > >> combination in a customer table using jdbc. In case the combination > >> does > >> not match, the servlet creates a web page informing that the > >> UserName/Password is incorrect. After a specified time, the Customer > >> web > >> page should reload with the values the Customer had keyed in. > >> > >> I am not sure as to how to restore/save the values the Customer had > >> keyed > >> in on the Customer web page. > >> > >> I am using Java Web Server 1.1.3 and JSDK 2.0 with Java 2 on a Windows > >> 95 > >> machine. > >> > >> All help most appreciated. > >> > >> Thanks, > >> > >> Satish > > ___________________________________________________________________________ > 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
begin:vcard n:Jain;Chitra tel;fax:804 762-7888 tel;work:804 762-7477 x-mozilla-html:TRUE org:Capital One Services, Inc. adr:;;11011 W.Broad Street;Richmond;Viriginia;Internal Zip : 23060-0315;U.S.A version:2.1 email;internet:[EMAIL PROTECTED] title:Developement Associate x-mozilla-cpt:;-11328 fn:Chitra Jain end:vcard
