tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Partha Bhattacharjee <>
Subject RE: More on JSP in XML format
Date Thu, 23 Nov 2000 05:09:40 GMT

I am sorry, I do not have an answer to the problem but I have another
problem of the same genre. 

I am writing a simple xml and parsing that client side with a simple xsl. It
is working fine. 

However the problem start when I write the same xml in a jsp file. Sometimes
the jsp will realise that the stuff it contains is a xml sometimes it won't.

I have been working on it for quite some time ( read wasted one day ) and it
appears to have to do something with the tomcat. Can you all tomcat users
write the following jsp and check out. 

<?xml version="1.0"?>
 <name> partha </name> 

<?xml version="1.0"?>
 <name> partha </name> 

Check out if the two files are always giving the same display on the

Please let me know. 

thanks in anticipation 


-----Original Message-----
From: Anne and Bill Moore []
Sent: Thursday, November 23, 2000 10:05 AM
To: tomcat user
Subject: More on JSP in XML format

I anm still trying to get my head around JSP in XML format.
Can anyone suggest further reading beyond the JSP Version 1.2 - Proposed
Final Draft (PFD) spec or provide examples.
When I try the examples like those from the spec using Tomcat Version
4.0 Milestone 4, I routinely get a java.lang.ClassCastException:
After some experimentation I was able to get very simple XML formatted
JSP to work, but it seems that whenever the jsp contained a jsp:cdata
element the class cast exception occurs.
It may be that I have misunderstood the jsp:cdata element or is this a
bug in Tomcat?
Thanks and Regards
Anne and Bill Moore
Remember: Life is too short to drink bad wine!!!

View raw message