Return-Path: Delivered-To: apmail-xml-cocoon-users-archive@xml.apache.org Received: (qmail 45469 invoked by uid 500); 31 Jul 2001 20:36:42 -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 45450 invoked from network); 31 Jul 2001 20:36:41 -0000 From: "Vadim Gritsenko" To: Subject: RE: strange Language Exception Date: Tue, 31 Jul 2001 16:35:40 -0400 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook IMO, Build 9.0.2416 (9.0.2910.0) X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2919.6700 Importance: Normal In-Reply-To: <3B670D56.8FAE2519@wincor-nixdorf.com> X-Spam-Rating: h31.sny.collab.net 1.6.2 0/1000/N Do you have this problem with latest CVS version? I think that this is already fixed in CVS. Thanks, Vadim > -----Original Message----- > From: Enke Michael [mailto:Michael.Enke@wincor-nixdorf.com] > Sent: Tuesday, July 31, 2001 3:56 PM > To: cocoon-users@xml.apache.org > Subject: xsp: strange Language Exception > > > Hi folks, > I have a question which I cann't answer myself and maybe > it is an error I have found? > > Lock at this few lines: > ======================================== > > > xmlns:xsp="http://apache.org/xsp" > xmlns:i18n="http://apache.org/cocoon/i18n/2.0" encoding="UTF-8" > > > > > > String result = "_d"; > if(result.equals("_d")) { > > > > } > else { > > result > > } > > > > ======================================== > It is without much sense but I wanted to concentrate on the effect. > In the if and else branch (in real life I have much more else if > branches) > I must repeat the and elements in each branch. > > My idea was to put only one before and > only one behind > But than I get these Exception: > > DEBUG 99660 [cocoon ] (/calypso/test_error) > Thread-22/ProgramGeneratorImpl: Language Exception > org.apache.cocoon.components.language.LanguageException: Error compiling > test_error_xsp: > Line 107, column 6: Invalid expression statement. > Line 107, column 14: ';' expected. > at > org.apache.cocoon.components.language.programming.java.JavaLanguage.compile(JavaLanguage.java:203) > at > org.apache.cocoon.components.language.programming.CompiledProgrammingLanguage.load(CompiledProgrammingLanguage > .java:140) > at > org.apache.cocoon.components.language.generator.ProgramGeneratorImpl.generateResource(ProgramGeneratorImpl.java:276) > at > org.apache.cocoon.components.language.generator.ProgramGeneratorImpl.load(ProgramGeneratorImpl.java:184) > at > org.apache.cocoon.generation.ServerPagesGenerator.setup(ServerPagesGenerator.java:153) > at > org.apache.cocoon.components.pipeline.AbstractEventPipeline.setupPipeline(AbstractEventPipeline.java:146) > ... > > Does anybody know if this is my problem because I didn't read deep > enough > into the documentation or is this a cocoon problem? > > Regards, > Michael > > --------------------------------------------------------------------- > 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: