Post Reply 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Reading session attributes using JSTL
08-23-2008, 11:28 PM
Post: #1
Reading session attributes using JSTL
How can I read a session attribute using JSTL?
Find all posts by this user
Quote this message in a reply
08-24-2008, 12:06 AM
Post: #2
RE: Reading session attributes using JSTL
To access session attribute from JSTL try the following code.

Code:
<c:out value='${sessionScope.variableName}'/>

where variable is your session parameter name
Visit this user's website Find all posts by this user
Quote this message in a reply
08-24-2008, 12:07 AM
Post: #3
RE: Reading session attributes using JSTL
The following method also will work.

Code:
<c:out value='${sessionScope["variableName"]}'/>
Visit this user's website Find all posts by this user
Quote this message in a reply
08-24-2008, 12:41 AM
Post: #4
RE: Reading session attributes using JSTL
thanks
Find all posts by this user
Quote this message in a reply
Post Reply 


Possibly Related Threads...
Thread: Author Replies: Views: Last Post
  Accessing servletcontext attributes using JSTL rani 1 904 03-16-2009 03:32 PM
Last Post: albinjoseph

Forum Jump: