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=35216>. 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=35216 Summary: x:forEach causes session scope exception Product: Taglibs Version: 1.1.0 Platform: Other OS/Version: other Status: NEW Severity: critical Priority: P2 Component: Standard Taglib AssignedTo: [email protected] ReportedBy: [EMAIL PROTECTED] Using the x:forEach tag on a page that does not participate in a session causes an exception because something tries to access a session scope variable. I discovered this problem while using: Standard taglib 1.1.2 Tomcat 5.0.27 Java 1.4.2 This simple jsp page fails: <%@ page session="false" %> <%@ taglib uri="http://java.sun.com/jsp/jstl/xml" prefix="x" %> <x:parse xml="<content/>" var="doc" scope="request" /> <x:forEach select="$doc//*"> foo </x:forEach> with this error: java.lang.IllegalStateException: Cannot access session scope in page that does not participate in any session at org.apache.jasper.runtime.PageContextImpl.doGetAttributeNamesInScope(PageContextImpl.java:501) at org.apache.jasper.runtime.PageContextImpl.getAttributeNamesInScope(PageContextImpl.java:487) at org.apache.taglibs.standard.tag.common.xml.XPathUtil.getVariableQNames(XPathUtil.java:100) at org.apache.taglibs.standard.tag.common.xml.XPathUtil.fillVarStack(XPathUtil.java:772) at org.apache.taglibs.standard.tag.common.xml.XPathUtil.selectNodes(XPathUtil.java:522) at org.apache.taglibs.standard.tag.common.xml.ForEachTag.prepare(ForEachTag.java:50) at javax.servlet.jsp.jstl.core.LoopTagSupport.doStartTag(LoopTagSupport.java:227) at org.apache.jsp.ttt_jsp._jspx_meth_x_forEach_0(ttt_jsp.java:106) at org.apache.jsp.ttt_jsp._jspService(ttt_jsp.java:61) at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:94) etc... -- 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: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
