• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Tim Cooke
  • Campbell Ritchie
  • paul wheaton
  • Ron McLeod
  • Devaka Cooray
Sheriffs:
  • Jeanne Boyarsky
  • Liutauras Vilda
  • Paul Clapham
Saloon Keepers:
  • Tim Holloway
  • Carey Brown
  • Piet Souris
Bartenders:

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

 
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
author
Posts: 3892
5
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
reply
    Bookmark Topic Watch Topic
  • New Topic