Return-Path: Delivered-To: apmail-jakarta-tomcat-user-archive@apache.org Received: (qmail 39459 invoked from network); 18 Jul 2003 01:09:11 -0000 Received: from exchange.sun.com (192.18.33.10) by daedalus.apache.org with SMTP; 18 Jul 2003 01:09:11 -0000 Received: (qmail 7426 invoked by uid 97); 18 Jul 2003 01:11:49 -0000 Delivered-To: qmlist-jakarta-archive-tomcat-user@nagoya.betaversion.org Received: (qmail 7419 invoked from network); 18 Jul 2003 01:11:48 -0000 Received: from daedalus.apache.org (HELO apache.org) (208.185.179.12) by nagoya.betaversion.org with SMTP; 18 Jul 2003 01:11:48 -0000 Received: (qmail 37213 invoked by uid 500); 18 Jul 2003 01:08:36 -0000 Mailing-List: contact tomcat-user-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Help: List-Post: List-Id: "Tomcat Users List" Reply-To: "Tomcat Users List" Delivered-To: mailing list tomcat-user@jakarta.apache.org Received: (qmail 37152 invoked from network); 18 Jul 2003 01:08:36 -0000 Received: from sid.armstrong.com (204.74.20.252) by daedalus.apache.org with SMTP; 18 Jul 2003 01:08:36 -0000 Received: from joedog.org (pcp01470022pcs.lncstr01.pa.comcast.net [68.82.237.147]) by sid.armstrong.com (8.12.8p1/8.12.8) with ESMTP id h6I12EM0004660 for ; Thu, 17 Jul 2003 20:02:15 -0500 Message-ID: <3F174895.6030006@joedog.org> Date: Thu, 17 Jul 2003 21:08:37 -0400 From: Tim Funk Organization: Human being User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.3) Gecko/20030312 X-Accept-Language: en-us, en, es-mx, de, sv MIME-Version: 1.0 To: Tomcat Users List Subject: Re: JSP include - compilation problem References: In-Reply-To: Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N There is no workaround. *** After a quick scan of jasper, I see that jspc will precompile *.jsp and *.jspx. So you need a different extension then I mentioned below. *** Ok there is - jspc does take file name arguements. (At least tomcat5 does) I haven;t done this so you'll need to experiement. -Tim Manikandan Balasubramanian wrote: > > ------------------------------------------------------------------------ > > Subject: > RE: JSP include - compilation problem > From: > "Manikandan Balasubramanian" > Date: > Fri, 18 Jul 2003 06:22:11 +0530 > To: > "Tomcat Users List" > > > All these JSP's are already in production and only recently we started to think about JSP precompilation. > The modification of included file name will work but will involve a overhead in terms of QA. > > So,is there a switch or a new version of Jasper that works for such situations. > > Thanks, > Mani > > > -----Original Message----- > From: Tim Funk [mailto:funkman@joedog.org] > Sent: Thu 17-Jul-03 05:37 PM > To: Tomcat Users List > Cc: > Subject: Re: JSP include - compilation problem > > > > Rename include.jsp to include.jspx > > That way you also have a nice naming standard for knowing that a file is an > included jsp or not. > > -Tim > > Manikandan Balasubramanian wrote: > > We use Jasper that came with tomcat-3.3.1 for precompiling JSP's. Many of our JSP's use the following syntax. > > > > parent.jsp > > =========== > > > > ; > > ; > > ; > > > > <%@ include file="child.jsp" %> > > > > ;;;; > > ----------------------------------------------------------------------------- > > > > child.jsp > > =========== > > > > <%@ page import="com.schwab.domain.configuration.model.AnchorsConfigurationFile" %> > > <% > > AnchorsConfigurationFile anchorConfig = AnchorsConfigurationFile.getInstance(jspContext.getCustomLocale()); > > %> > > .... > > ;;;; > > > > > > At runtime,"jspcontext" is resolved and everything works fine. But at compiletime , child.jsp gets compiled separately and it throws and error for these undeclared variables. > > > > How do we solve this ? > > > > Thanks, > > Mani > > > > > > > > **************************Disclaimer************************************ > > > > Information contained in this E-MAIL being proprietary to Wipro Limited is > > 'privileged' and 'confidential' and intended for use only by the individual > > or entity to which it is addressed. You are notified that any use, copying > > or dissemination of the information contained in the E-MAIL in any manner > > whatsoever is strictly prohibited. > > > > *************************************************************************** > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org > For additional commands, e-mail: tomcat-user-help@jakarta.apache.org > > > > > > ------------------------------------------------------------------------ > > **************************Disclaimer************************************ > > Information contained in this E-MAIL being proprietary to Wipro Limited is > 'privileged' and 'confidential' and intended for use only by the individual > or entity to which it is addressed. You are notified that any use, copying > or dissemination of the information contained in the E-MAIL in any manner > whatsoever is strictly prohibited. > > *************************************************************************** > > > > ------------------------------------------------------------------------ > > --------------------------------------------------------------------- > To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org > For additional commands, e-mail: tomcat-user-help@jakarta.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org For additional commands, e-mail: tomcat-user-help@jakarta.apache.org