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=36637>. 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=36637 Summary: [PATCH] <[EMAIL PROTECTED] session="false"%> causes exception in <x:set> Product: Taglibs Version: unspecified Platform: Other OS/Version: other Status: NEW Severity: normal Priority: P2 Component: Standard Taglib AssignedTo: [email protected] ReportedBy: [EMAIL PROTECTED] When using jakarta-taglibs-standard-1.1.2 in JSP pages where I first declare: <[EMAIL PROTECTED] session="false"%> I get an exception when using <x:set> The exception is: 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) ... Looks like XPathUtil always assumes a session is available. My setup is briefly: jakarta-tomcat-5 web.xml starts: <?xml version="1.0" encoding="ISO-8859-1"?> <web-app xmlns="http://java.sun.com/xml/ns/j2ee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd" version="2.4"> .. and an example page that causes trouble: <%@ page session="false" %> <%@ taglib prefix="x" uri="http://java.sun.com/jsp/jstl/core" %> <x:parse var="xml"> <test>blah</test> </x:parse> <x:set var="test" select="$xml"/> -- 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]
