• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

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

 
sripad devaraju
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
sundari swamy
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 3892
5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic