tomcat-taglibs-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Vernon <>
Subject Retrieve a session attribute
Date Thu, 14 Apr 2005 16:30:33 GMT
In Servlet, I have 


The code returns the right result.

In JSP, when I have 

<fmt:message key="cc.${}"/>

I get 

java.lang.IllegalStateException: Cannot access session
scope in page that does not participate in any session

I think the reason is that I have

<%@ page session="false"%> in the JSP file.

I have tried to retrieve the session attribute in some
other ways like the follogins I can think with a
success. What is the right way to get the attribute
with the JSTL?

<fmt:message key="cc.${}"/>

<fmt:message key="cc.${}"/>

The both yeild ??cc.??


Do you Yahoo!? 
Yahoo! Small Business - Try our new resources site!

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message