tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Bap <li...@a1.org.uk>
Subject Re: More on JSP in XML format -- This, is a very excellent post!
Date Mon, 04 Dec 2000 14:50:59 GMT
Bap wrote:

> "Michael G. Anderson C.T.O" wrote:
>
> > This, is a very excellent post!
> >
> > Anne and Bill Moore wrote:
> >
> > > Pierre Delisle wrote:
> > > 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>
> > >
>
> The above is not valid XML, you cannot use < within a section of XML, unless
> it is within a CDATA section or is the start of a start tag.
>
> Bap.

sorry, "The above is not well-formed XML"


Mime
View raw message