Pierre Delisle wrote:
>
> <jsp:cdata> is currently not supported in tomcat-4.0.
> You can either put the template data directly in the
> jsp page, or you can simply use the standard XML tag
> for CDATA: <![CDATA[... ]]>.
>
> Give it a try and let me know.
>
> Please report any JSP page in XML syntax that does not
> work (except for the <jsp:cdata>). I'll make sure
> the proper fixes are committed.
>
Pierre
The CDATA approach works as you suggested, so I have continued my
testing - I am using the Tomcat example jsps as my starting point - I
aim to have an XML representation of each Tomcat example jsp.
I have now found a bug with scriplets.
The < character in a scriptlet are being parsed as if it were markup
rather than being treated as Java syntax less than symbol.
For example the scriptlet
<%
for(int i=0; i<6; i++)
out.println(i);
%>
works as expected in standard format jsp.
The xml format scriplet shown below produces an exception
org.apache.jasper.compiler.ParseException The content beginning "<6" is
not legal markup
<jsp:scriptlet>
for(int i=0; i<6; i++)
out.println(i);
</jsp:scriptlet>
When you asked me to report bugs I was not sure if you mneant for me to
enter them to bugrat - I created Bug Report #511 with synopsis
"Error in parsing scriptlet when jsp is in xml format " to describe this
problem.
BTW Bugrat seemed to mangle the example scriptlet I entered in the
problem description and seems to have lost the comment I put in the How
to reproduce section.
--
Thanks and Regards
Anne and Bill Moore
[EMAIL PROTECTED]
Remember: Life is too short to drink bad wine!!!