• 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:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Extracting Values From Single Cookie

 
Greenhorn
Posts: 11
Eclipse IDE Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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..

Name:UserID
Value:UserID=1305&Pwd=As123

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..
 
Sheriff
Posts: 67746
173
Mac Mac OS X IntelliJ IDE jQuery TypeScript Java iOS
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
/slaps-forehead

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?
reply
    Bookmark Topic Watch Topic
  • New Topic