Discussions
Categories
Groups
Community Home
Categories
INTERNAL ENABLEMENT
POPULAR
THRUST SERVICES & TOOLS
CLOUD EDITIONS
Quick Links
MY LINKS
HELPFUL TIPS
Back to website
Home
Web CMS (TeamSite)
How do I access an attribute set in a session
balajiranjan
Hi,
I am able to set my session attribute in the java code using
request.getContext().getSession().setAttribute("test","test")
But I am not able to access it in the page
I have tried
$CONTEXT{session.attribute[test]}
or
$CONTEXT{session.attribute.test}
When I do this I am seeing the attributeNames $CONTEXT{session.attributeNames}
Thanks,
Balaji
Find more posts tagged with
Comments
balajiranjan
Hi Everyone,
THe way to access a session attribute is as follows:
$CONTEXT{session.attribute(UserEmailBody)}
Thanks,
Balaji