• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Display value of cookie into text box

 
Maan Suraj
Ranch Hand
Posts: 299
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Request_params_cookies.jsp


How can i populate my text box the next time the page loads?
i want to know what do i need to write in value...
 
Kunal Gandhi
Greenhorn
Posts: 25
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
In the given code, you can replace following line

<tr><td> Name: <input type="text" name="name" value=???></tr>

with this line to display value of cookie named "user" into textbox

<tr><td> Name: <input type="text" name="name" value="${cookie.user.value}"></tr>
 
Maan Suraj
Ranch Hand
Posts: 299
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks kunal, it's working .
[ October 22, 2008: Message edited by: Maan Shenoy ]
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic