"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.

Reply via email to