Re: jstl x:parse outputs data

Isabelle Phan <[email protected]>
Newsgroups gmane.comp.jakarta.taglibs.user
Message-ID <[email protected]>
OK many thanks Kris, and help from everyone else on this list also very much 
appreciated.


Kris Schneider wrote:
> 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
> 


-- 
Isabelle Phan, D.Phil.
Swiss Institute of Bioinformatics         Tel: (+41 22) 379 51 89
CMU - 1, rue Michel Servet                Fax: (+41 22) 379 58 58
CH - 1211 Geneva 4 Switzerland            email: [email protected]
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.