Return-Path: Delivered-To: apmail-xml-cocoon-users-archive@xml.apache.org Received: (qmail 72581 invoked by uid 500); 18 Dec 2001 11:28:44 -0000 Mailing-List: contact cocoon-users-help@xml.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: list-post: Reply-To: cocoon-users@xml.apache.org Delivered-To: mailing list cocoon-users@xml.apache.org Received: (qmail 72569 invoked from network); 18 Dec 2001 11:28:43 -0000 To: cocoon-users@xml.apache.org Subject: Re: xsp while - for loop Message-ID: <1008674912.3c1f286030514@mail.otego.com> Date: Tue, 18 Dec 2001 12:28:32 +0100 (CET) From: Giacomo Pati References: In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit User-Agent: IMP/PHP IMAP webmail program 2.2.4 X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N Quoting Johannes Schwarz : > My xsp - file compiles without any problems. > > But as soon as I put a while or a for loop inside the method or > inside the - tag within the tag NAVIGATION my xsp file won't > compile anymore. > It seems that it's going into an infinite loop. > > Did anybody else have that problem or at least a solution? > > > Best regards > > J. Schwarz > > > > > > > > > java.util.* > > java.io.* > > > > String fileName=""; > > public File getFileName() > { > fileName = > parameters.getParameter("fileName","unknown"); > File back=null; > try { > back=new File(fileName); > > } > catch (Exception e) > { e.printStackTrace(); } > > return back; > } > > > > for (int i=0;i<5;i++) ^^^ Try using for (int i=0;i < 5;i++) as although it looks like java it is handled like xml and thus you have to use entities for <, > and &. Giacomo > ; //dosomething > > > > > > > > --------------------------------------------------------------------- > Please check that your question has not already been answered in the > FAQ before posting. > > To unsubscribe, e-mail: > For additional commands, e-mail: > > > --------------------------------------------------------------------- Please check that your question has not already been answered in the FAQ before posting. To unsubscribe, e-mail: For additional commands, e-mail: