wood burning stoves 2.0*
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
JavaRanch » Java Forums » Java » Servlets
Bookmark "How To bind html form field Watch "How To bind html form field New topic

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

sripad devaraju

Joined: Nov 26, 2001
Posts: 5
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

sundari swamy

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
Ranch Hand

Joined: Aug 10, 2001
Posts: 3892
If you REALLY want to do your own session management with cookies like this, then my old article here:
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 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.
I agree. Here's the link: http://aspose.com/file-tools
subject: How To bind html form field's value to session id..
Similar Threads
unique session for every tabs of browser window
How to delete a cookie from Request (age old question never answered)
tomcat session handling
design advice required