From users-return-164076-apmail-tomcat-users-archive=tomcat.apache.org@tomcat.apache.org Mon Jun 04 00:25:27 2007 Return-Path: Delivered-To: apmail-tomcat-users-archive@www.apache.org Received: (qmail 17592 invoked from network); 4 Jun 2007 00:25:26 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 4 Jun 2007 00:25:26 -0000 Received: (qmail 65829 invoked by uid 500); 4 Jun 2007 00:25:19 -0000 Delivered-To: apmail-tomcat-users-archive@tomcat.apache.org Received: (qmail 64800 invoked by uid 500); 4 Jun 2007 00:25:16 -0000 Mailing-List: contact users-help@tomcat.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "Tomcat Users List" Delivered-To: mailing list users@tomcat.apache.org Received: (qmail 64789 invoked by uid 99); 4 Jun 2007 00:25:16 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 03 Jun 2007 17:25:16 -0700 X-ASF-Spam-Status: No, hits=2.0 required=10.0 tests=HTML_MESSAGE X-Spam-Check-By: apache.org Received-SPF: pass (herse.apache.org: local policy) Received: from [209.73.178.76] (HELO web60013.mail.yahoo.com) (209.73.178.76) by apache.org (qpsmtpd/0.29) with SMTP; Sun, 03 Jun 2007 17:25:11 -0700 Received: (qmail 3457 invoked by uid 60001); 4 Jun 2007 00:24:49 -0000 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=X-YMail-OSG:Received:Date:From:Subject:To:In-Reply-To:MIME-Version:Content-Type:Content-Transfer-Encoding:Message-ID; b=wKdQSiyD+Sk37DYnVeEzhmNtyTyBIpjYhJNhE05NZ68UB2z4exFrB1zwXi/YmMYmRtVqWLNaJdSsGriCeB6nCNmBka7pMyUUVmd66ekVa/n7u8ZmZg7/aGjWulZ0lOMeLx8cDzuxxxCWJBHjVfnuDvhiNTSUVw82ENCWC/8jTbA=; X-YMail-OSG: oGLz6JYVM1m6VBr0CXGfkaVrH46B4WaNKrrYLwEdouR2Yk_qdhrxpX_sFV4SWCF6nosh4oOTmvWb7l8jAXgv6VVvvTWJpoC_GqfGZBp.kH8XR6spTdCY8TLMmg1tpds- Received: from [24.44.101.15] by web60013.mail.yahoo.com via HTTP; Sun, 03 Jun 2007 17:24:49 PDT Date: Sun, 3 Jun 2007 17:24:49 -0700 (PDT) From: Mike Peremsky Subject: Re: jsp includes not compiling To: Tomcat Users List In-Reply-To: <171379.94905.qm@web60017.mail.yahoo.com> MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="0-19562481-1180916689=:3154" Content-Transfer-Encoding: 8bit Message-ID: <583974.3154.qm@web60013.mail.yahoo.com> X-Virus-Checked: Checked by ClamAV on apache.org --0-19562481-1180916689=:3154 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit Hmm, I went back to look. That is the syntax I use with weblogic. If I remove the <% %> from the inc file Tomcat loads the files properly. But then I cannot use logic in the inc file (e.g. if (obj != null) { } Mike Peremsky wrote: Oops. I missed that. Thx David Smith wrote: You are already in a pair when you do GlobalConst.SO_LOGIN_OBJ %>. Why? Seems to me this would be a better expression: LoginObject loginobj = (LoginObject)session.getAttribute( GlobalConst.SO_LOGIN_OBJ ) %> --David Mike Peremsky wrote: > I have used jsp includes with weblogic with no problems, I am using the same format of the code with Tomcat but am having issues. > > I include the jsp as follows: > > > > > The code in the inc file is: > > > > > LoginObject loginobj = (LoginObject)session.getAttribute(""); > %> > > > > The error I am getting is the following: > > org.apache.jasper.JasperException: Unable to compile class for JSP: > An error occurred at line: 5 in the jsp file: /include/JspVariables.inc > String literal is not properly closed by a double-quote > 2: > 3: > 4: > 5: LoginObject loginobj = (LoginObject)session.getAttribute(""); > 6: %> > > I also get other strange errors on other inc files, but am not yet sure if it is related to the fact that this variable is not being declared. > > - Mike > > > --------------------------------- > No need to miss a message. Get email on-the-go > with Yahoo! Mail for Mobile. Get started. > --------------------------------------------------------------------- To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org For additional commands, e-mail: users-help@tomcat.apache.org --------------------------------- Looking for earth-friendly autos? Browse Top Cars by "Green Rating" at Yahoo! Autos' Green Center. --------------------------------- Be a better Heartthrob. Get better relationship answers from someone who knows. Yahoo! Answers - Check it out. --0-19562481-1180916689=:3154--