• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Cookie Display in a jsp

 
krish chaitu
Ranch Hand
Posts: 32
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I have requirement where user logins through login page & his information is stored as cookie ,so now i need to display the same user id when the user clicks submit in another jsp page that is been stored as a cookie ,so can any one let me know how i can display the cookie information.

please help me in this ...

Thanks
krish
 
Michael Ku
Ranch Hand
Posts: 510
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You can get the cookies out of the request object. Then locate the cookie you want by name and display what you want.

Are you posting to a Servlet or JSP? In your JSP are you using JSTL, the EL or scripting?

What have you done so far?

More info please...
 
krish chaitu
Ranch Hand
Posts: 32
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by krish chaitu:
Hi,

I have requirement where user logins through login page & his information is stored as cookie ,so now i need to display the same user id when the user clicks submit in another jsp page that is been stored as a cookie ,so can any one let me know how i can display the cookie information.

please help me in this ...

Thanks
krish


Iam trying to display the user id information that is stored in a cookie in jsp page.


Thanks
krish
 
krish chaitu
Ranch Hand
Posts: 32
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi
Iam using jstl to display the data,so i need some example that uses jstl to display the cookie information

Thanks
krish
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64990
86
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Do you have a copy of the JSP specification handy? If you are writing JSPs and do not, you are doing it wrong.

Specifically, check out section 2.2.3.
 
Michael Ku
Ranch Hand
Posts: 510
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What have you done so far?


I ask again. Please post the code you have so far...
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic