File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Servlets and the fly likes How To bind html form field's value to session id.. Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Soft Skills this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "How To bind html form field Watch "How To bind html form field New topic
Author

How To bind html form field's value to session id..

sripad devaraju
Greenhorn

Joined: Nov 26, 2001
Posts: 5
Hi,
i am new to servlets, i am doing some r&d on cookies,i have,three html pages each having two text boxes,and one submit button,first page is developed in html file, and next two r using servlets.i want to send data from first page to second one,second to third,and then third to data base. so i want to impliment this using cookies(in servlet).so my question is how to bind form field's(two text box'sof each page values) values to cookie name or session id.
Note:-i am sending cookie to client when client gets second page.and sneding cookie value to server when i am sibmitting second form.
i appreciate your help
thanks
sripad

shippu
sundari swamy
Greenhorn

Joined: Oct 19, 2001
Posts: 9
any reason why you want to use cookies? U can send those values as a queryString to the next page or servlet.
Kyle Brown
author
Ranch Hand

Joined: Aug 10, 2001
Posts: 3892
    
    5
If you REALLY want to do your own session management with cookies like this, then my old article here:
http://hometown.aol.com/kgb1001001/index.html
called "Serious Servlet Programming" shows you how to do it. However, why do you want to do this? Just use the HttpSession provided by the web container...
Kyle
------------------
Kyle Brown,
Author of Enterprise Java (tm) Programming with IBM Websphere
See my homepage at http://members.aol.com/kgb1001001 for other WebSphere information.


Kyle Brown, Author of Persistence in the Enterprise and Enterprise Java Programming with IBM Websphere, 2nd Edition
See my homepage at http://www.kyle-brown.com/ for other WebSphere information.
 
wood burning stoves
 
subject: How To bind html form field's value to session id..