You are viewing a plain text version of this content. The canonical link for it is here.
Posted to taglibs-dev@jakarta.apache.org by bu...@apache.org on 2005/11/29 19:59:15 UTC
DO NOT REPLY [Bug 37699] New: -
c:if test fail when session invalidated using el
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG�
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=37699>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND�
INSERTED IN THE BUG DATABASE.
http://issues.apache.org/bugzilla/show_bug.cgi?id=37699
Summary: c:if test fail when session invalidated using el
Product: Taglibs
Version: 1.1.0
Platform: PC
OS/Version: Windows 2000
Status: NEW
Severity: trivial
Priority: P2
Component: Standard Taglib
AssignedTo: taglibs-dev@jakarta.apache.org
ReportedBy: nex_sandro@yahoo.com.br
My jstl build is 1.1.1.
When I try to make a test with "<c:if" using an variable defined in scriptlet,
the test fail with the stacktrace:
java.lang.IllegalStateException: getAttribute: Session already invalidated
org.apache.catalina.session.StandardSession.getAttribute
(StandardSession.java:975)
org.apache.catalina.session.StandardSessionFacade.getAttribute
(StandardSessionFacade.java:113)
org.apache.jasper.runtime.PageContextImpl.doFindAttribute
(PageContextImpl.java:469)
org.apache.jasper.runtime.PageContextImpl.findAttribute
(PageContextImpl.java:454)
org.apache.commons.el.VariableResolverImpl.resolveVariable
(VariableResolverImpl.java:157)
org.apache.jasper.runtime.PageContextImpl.resolveVariable
(PageContextImpl.java:833)
org.apache.commons.el.NamedValue.evaluate(NamedValue.java:124)
org.apache.commons.el.UnaryOperatorExpression.evaluate
(UnaryOperatorExpression.java:156)
org.apache.commons.el.ExpressionEvaluatorImpl.evaluate
(ExpressionEvaluatorImpl.java:263)
org.apache.commons.el.ExpressionEvaluatorImpl.evaluate
(ExpressionEvaluatorImpl.java:190)
org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate
(PageContextImpl.java:899)
org.apache.jsp.jsp.index_jsp._jspx_meth_c_if_0(index_jsp.java:316)
...
I'm using session and variable this way:
<%
if(!session.isNew()) session.invalidate();
String msg = (String) request.getAttribute("msg");
%>
I'm testing using variable msg this way:
...
<c:if test="${!empty msg}">
<tr>
<td valign="top" align="center" colspan="3"><font
color="red">${msg}</font></td>
</tr>
</c:if>
...
I feel that "<c:if" try to find "msg" in session, when there's no session
valid.
Thanks
--
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
---------------------------------------------------------------------
To unsubscribe, e-mail: taglibs-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: taglibs-dev-help@jakarta.apache.org