Return-Path: Mailing-List: contact cocoon-users-help@xml.apache.org; run by ezmlm Delivered-To: mailing list cocoon-users@xml.apache.org Received: (qmail 30078 invoked from network); 21 Feb 2001 08:37:18 -0000 Received: from vector.intergate.ca (207.34.179.20) by h31.sny.collab.net with SMTP; 21 Feb 2001 08:37:18 -0000 Received: (qmail 28785 invoked by uid 1007); 21 Feb 2001 08:37:37 -0000 Received: from liv@intergate.ca by vector.intergate.ca with qmail-scanner-0.93 (uvscan: v4.0.50/v4116. . Clean. Processed in 0.128862 secs); 21/02/2001 00:37:37 Received: from fat-dynamic75.fatwire.net (HELO intergate.ca) (207.194.174.75) by vector.intergate.ca with SMTP; 21 Feb 2001 08:37:37 -0000 Sender: liv Message-ID: <3A937E23.628CBEBF@intergate.ca> Date: Wed, 21 Feb 2001 00:36:51 -0800 From: Olivier Eymere X-Mailer: Mozilla 4.75 [en] (X11; U; Linux 2.2.16-22 i586) X-Accept-Language: en MIME-Version: 1.0 To: cocoon-users@xml.apache.org Subject: error with xsp code References: <982744004.25204.ezmlm@xml.apache.org> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Spam-Rating: h31.sny.collab.net 1.6.2 0/1000/N This should be pretty easy... I have been trying to use the code below that was posted to the group about 10 days ago: String[] param = request.getParameterValues("dummy"); String stylesheet; if (param != null) { stylesheet = "pdf.xsl"; } else { stylesheet = "html.xsl"; } href="stylesheet" type="text/xsl" When I try to run the code I get the following error: java.lang.Exception: XSP Java Compiler: Compilation failed for _test.java 28: Type expected. if (param != null) { ^ 1 error Can anyone help me get around this error?