| Author |
XHTML get HttpSession attribute
|
Kevin P Smith
Ranch Hand
Joined: Feb 18, 2005
Posts: 362
|
|
Hi guys,
Quickie question...
Is there a way to get a HttpSession attribute in XHTML, like in JSPs?
In JSPs it's just
<%session.getAttribute("welcome")%>
Is there a XHTML equivilent or do I have to create a Session Bean and access it that way?
Cheers
KS
|
 |
Bear Bibeault
Author and ninkuma
Marshal
Joined: Jan 10, 2002
Posts: 56191
|
|
Think about it for a minute.
XHTML = client
HttpSession = server
XHTML = general standard
HttpSession = Java only
So. no.
If you want to access the session, it must happen on the server in a servlet or JSP.
|
[Smart Questions] [JSP FAQ] [Books by Bear] [Bear's FrontMan] [About Bear]
|
 |
 |
|
|
subject: XHTML get HttpSession attribute
|
|
|