Meaningless Drivel is fun!
The moose likes JSP and the fly likes Extracting Values From Single Cookie Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of OCA Java SE 8 Programmer I Study Guide this week in the OCAJP 8 forum!
JavaRanch » Java Forums » Java » JSP
Bookmark "Extracting Values From Single Cookie" Watch "Extracting Values From Single Cookie" New topic

Extracting Values From Single Cookie

Rocky Khan

Joined: Oct 18, 2011
Posts: 11

Guys I am linking two web applications one written in ASP .NET and another in JSP..
I need your help concern about Cookie i have created a Cookie in ASP .NET..


By the following code i am getting only Name which is as shown below

I want to extract only UserID from Cookie value but i am unable to get it by getValue() function..

Thank You in Advance..
Bear Bibeault
Author and ninkuma

Joined: Jan 10, 2002
Posts: 63350


Are you still putting Java code in JSPs? That's a bad practice that's been discredited for almost 10 years now. Also, generating HTML in Java String in a JSP is another red flag. The whole purpose of a JSP is so that you can put HTML directly into template text.

Why are you not doing this in a servlet?

[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
I agree. Here's the link:
subject: Extracting Values From Single Cookie
It's not a secret anymore!