Re: jstl x:parse outputs data

Kris Schneider <[email protected]>
Newsgroups gmane.comp.jakarta.taglibs.user
Message-ID <[email protected]>
http://issues.apache.org/bugzilla/show_bug.cgi?id=35216

This has been fixed but not yet released.

Kris Schneider wrote:
> For now, try removing session="false" from your page directive.
> 
> Isabelle Phan wrote:
> 
>> with both Xalan 2.7.0 and 2.5.0 I now get the error
>>
>>    WARN: Unhandled exception
>> org.apache.jasper.JasperException: Exception in JSP: /index.jspx:102
>>
>> 100:     <c:import var="rssFeed" 
>> url="http://www.expasy.org/spotlight/index.xml"/>
>> 101:     <x:parse var="rss" xml="${rssFeed}"/>
>> 102:     <x:out 
>> select="$rss//*[name()='channel']/*[name()='title'][1]" 
>> escapeXml="false"/>
>>
>>   ERROR: Nested in javax.servlet.ServletException: 
>> javax.servlet.jsp.JspException: Cannot access session scope in page 
>> that does not participate in any session:
>> java.lang.IllegalStateException: Cannot access session scope in page 
>> that does not participate in any session
>>
>>
>> Kris Schneider wrote:
>>  > You'll need both Xerces and Xalan (Xerces should be included in the
>>  > Xalan download). I believe the release notes for Standard 1.1 state 
>> that
>>  > Xalan 2.5 is required. Use this link:
>>  >
>>  > http://www.apache.org/dyn/closer.cgi/xml/xalan-j
>>  >
>>  > to download the latest version. If you run into any issues, you can 
>> try
>>  > falling back to 2.5.0:
>>  >
>>  > 
>> http://archive.apache.org/dist/xml/xalan-j/binaries/xalan-j_2_5_0-bin.zip
>>  >
>>  >  From the ZIP file, you'll want the following JARs:
>>  >
>>  > xalan.jar
>>  > xercesImpl.jar
>>  > xml-apis.jar

-- 
Kris Schneider <mailto:[email protected]>
D.O.Tech       <http://www.dotech.com/>
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.