Search...
FAQs
Subscribe
Pie
FAQs
Recent topics
Flagged topics
Hot topics
Best topics
Search...
Search within OCPJWCD
Search Coderanch
Advance search
Google search
Register / Login
Win a copy of
Communication Patterns: A Guide for Developers and Architects
this week in the
Design and Architecture
forum!
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
Ron McLeod
Paul Clapham
Devaka Cooray
Liutauras Vilda
Sheriffs:
Jeanne Boyarsky
paul wheaton
Henry Wong
Saloon Keepers:
Stephan van Hulst
Tim Holloway
Tim Moores
Carey Brown
Mikalai Zaikin
Bartenders:
Lou Hamers
Piet Souris
Frits Walraven
Forum:
Web Component Certification (OCEJWCD)
How to access Cookie value using EL
Mike lothar
Greenhorn
Posts: 22
posted 19 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
Hi All,
How to access Cookie value using EL. i tried to access cookie using EL its printing characters which are not meaningful.
Thank you
Mike
Giju George
Ranch Hand
Posts: 333
posted 19 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
The cookies are stored as Map (name -value pairs). So if you create a cookie like :-
Cookie c=new Cookie("c1","My
test
cookie");
response.addCookie(c);
Then you can access it using the following EL in
jsp
:-
Cookie :- ${cookie["c1"].value}
Hope this helps
SCJP 1.4, SCWCD 1.4, SCBCD 1.3, SCEA
Mike lothar
Greenhorn
Posts: 22
posted 19 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
Thank you Giju George
Mike
Acetylsalicylic acid is aspirin. This could be handy too:
We need your help - Coderanch server fundraiser
https://coderanch.com/wiki/782867/Coderanch-server-fundraiser
reply
reply
Bookmark Topic
Watch Topic
New Topic
Boost this thread!
Similar Threads
Doubt in EL Implicit Objects: Cookie
getting cookies with EL
how to access request attribute using EL
cookie name using EL
Cookie access with EL expression
More...