aspose file tools*
The moose likes JSP and the fly likes Cookie Display  in a jsp Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Soft Skills this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Java » JSP
Bookmark "Cookie Display  in a jsp " Watch "Cookie Display  in a jsp " New topic
Author

Cookie Display in a jsp

krish chaitu
Ranch Hand

Joined: Oct 09, 2007
Posts: 32
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

Joined: Apr 20, 2002
Posts: 510
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

Joined: Oct 09, 2007
Posts: 32
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

Joined: Oct 09, 2007
Posts: 32
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

Joined: Jan 10, 2002
Posts: 61753
    
  67

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.


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
Michael Ku
Ranch Hand

Joined: Apr 20, 2002
Posts: 510
What have you done so far?


I ask again. Please post the code you have so far...
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Cookie Display in a jsp