Return-Path: Mailing-List: contact tomcat-user-help@jakarta.apache.org; run by ezmlm Delivered-To: mailing list tomcat-user@jakarta.apache.org Received: (qmail 75877 invoked from network); 4 Dec 2000 18:50:40 -0000 Received: from patan.sun.com (192.18.98.43) by locus.apache.org with SMTP; 4 Dec 2000 18:50:40 -0000 Received: from shorter.eng.sun.com ([129.144.125.35]) by patan.sun.com (8.9.3+Sun/8.9.3) with ESMTP id KAA04703 for ; Mon, 4 Dec 2000 10:50:27 -0800 (PST) Received: from sun.com (d-ucup02-251-149 [129.144.251.149]) by shorter.eng.sun.com (8.9.3+Sun/8.9.3/ENSMAIL,v1.7) with ESMTP id KAA11274 for ; Mon, 4 Dec 2000 10:50:26 -0800 (PST) Message-ID: <3A2BE770.5E47554E@sun.com> Date: Mon, 04 Dec 2000 10:50:24 -0800 From: Pierre Delisle X-Mailer: Mozilla 4.76 [en] (WinNT; U) X-Accept-Language: en MIME-Version: 1.0 To: tomcat-user@jakarta.apache.org Subject: Re: More on JSP in XML format References: <3A1C9E65.62AE6A53@bellsouth.net> <3A1E7814.BFFB8537@sun.com> <3A287362.A969AF22@bellsouth.net> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Spam-Rating: locus.apache.org 1.6.2 0/1000/N Anne and Bill Moore 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 > > > > for(int i=0; i<6; i++) > out.println(i); > > As "Bap" replied, you must make sure you "escape" content that can be interpreted by XML. Remember, this is an XML document that is being submitted to an XML parser. By doing this: It should work fine. > 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. Yes, bugrat is the preferred way to submit bug reports. If just submitted to the mailing list, they unfortunately run the chance to fall through the cracks. -- Pierre