This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes JSP and the fly likes ${cookie.userName.value} doesn't give any value Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » JSP
Bookmark "${cookie.userName.value} doesn Watch "${cookie.userName.value} doesn New topic

${cookie.userName.value} doesn't give any value

Samanthi perera
Ranch Hand

Joined: Jan 08, 2010
Posts: 510
this is my jsp file

this prints nothing.
But i read it should print Cookie implicit objects?

Royston Monteiro
Ranch Hand

Joined: Apr 25, 2008
Posts: 35

Looks like either the web browser has disabled cookies or a cookie by that name hasnt been sent with the response to the client before this JSP was called.

You could confirm this by verifying that you dont get any output while doing the same thing with scripting.

Sun Certified Java Programmer 1.5,
Sun Certified Web Component Developer 5.
"No pain. No Gain"
subject: ${cookie.userName.value} doesn't give any value
Similar Threads
Include a servlet in a jsp
Problem with JSPs in web application
How to detect escape key press in browser
how to get sessionscope boolean varible
NullPointerException at service.getPort().