Return-Path: Delivered-To: apmail-xml-cocoon-users-archive@xml.apache.org Received: (qmail 49449 invoked by uid 500); 3 Apr 2003 07:08:46 -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 49436 invoked from network); 3 Apr 2003 07:08:46 -0000 Received: from unknown (HELO mx.4dconcept.fr) (195.134.212.164) by daedalus.apache.org with SMTP; 3 Apr 2003 07:08:46 -0000 Received: from pc-016.4dconcept.fr (becane16.jouy.4dconcept.fr [192.9.200.16]) by mx.4dconcept.fr (Postfix) with ESMTP id EC5AA7957C for ; Thu, 3 Apr 2003 07:48:16 +0200 (CEST) Message-Id: <5.2.0.9.0.20030403090944.00a9c9d8@messagerie.jouy.4dconcept.fr> X-Sender: lcrine@messagerie.jouy.4dconcept.fr X-Mailer: QUALCOMM Windows Eudora Version 5.2.0.9 Date: Thu, 03 Apr 2003 09:10:23 +0200 To: cocoon-users@xml.apache.org From: Lionel Crine Subject: Re: [XSP] not for int? In-Reply-To: <003a01c2f8f9$4a955140$0300a8c0@obelix> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; format=flowed X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N the tag should be between the tag. Lionel At 11:21 02/04/2003 +0200, you wrote: >Hello, > >the following XSP causes an LanguageException: > > > > xmlns:xsp="http://apache.org/xsp"> > > > int value = 1; > value = value + 1; > > > > PageTitle > > 1 + 1 = value > > > > >The exception says: > >org.apache.cocoon.components.language.LanguageException: Error compiling >xsptest_xsp: >Line 69, column 22: expected >Line 69, column 16: class value not found in class >org.apache.cocoon.www.xsptest_xsp >Line 0, column 0: >2 errors > >After changing the type from int to String, the XSP works: > > > > xmlns:xsp="http://apache.org/xsp"> > > > String value = "1"; > value = "2"; > > > > PageTitle > > 1 + 1 = value > > > > >Why? Doesn't automatically convert int to String? > >Thank you! > >Regards >Stephan > > > >--------------------------------------------------------------------- >To unsubscribe, e-mail: cocoon-users-unsubscribe@xml.apache.org >For additional commands, e-mail: cocoon-users-help@xml.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: cocoon-users-unsubscribe@xml.apache.org For additional commands, e-mail: cocoon-users-help@xml.apache.org