File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes HTML, CSS and JavaScript and the fly likes XHTML get HttpSession attribute Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "XHTML get HttpSession attribute" Watch "XHTML get HttpSession attribute" New topic

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

Is there a XHTML equivilent or do I have to create a Session Bean and access it that way?


Bear Bibeault
Author and ninkuma

Joined: Jan 10, 2002
Posts: 63837

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.

[Asking smart questions] [About Bear] [Books by Bear]
I agree. Here's the link:
subject: XHTML get HttpSession attribute
It's not a secret anymore!