Return-Path: Delivered-To: apmail-jakarta-tomcat-user-archive@www.apache.org Received: (qmail 68696 invoked from network); 8 Jul 2004 19:28:01 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur-2.apache.org with SMTP; 8 Jul 2004 19:28:01 -0000 Received: (qmail 16729 invoked by uid 500); 8 Jul 2004 19:27:38 -0000 Delivered-To: apmail-jakarta-tomcat-user-archive@jakarta.apache.org Received: (qmail 16528 invoked by uid 500); 8 Jul 2004 19:27:37 -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 16514 invoked by uid 99); 8 Jul 2004 19:27:37 -0000 X-ASF-Spam-Status: No, hits=3.5 required=10.0 tests=DNS_FROM_RFC_ABUSE,DNS_FROM_RFC_POST,DNS_FROM_RFC_WHOIS,X_MSMAIL_PRIORITY_HIGH,X_PRIORITY_HIGH X-Spam-Check-By: apache.org Received: from [216.148.227.85] (HELO rwcrmhc12.comcast.net) (216.148.227.85) by apache.org (qpsmtpd/0.27.1) with ESMTP; Thu, 08 Jul 2004 12:27:35 -0700 Received: from MrNat (h0048543e658f.ne.client2.attbi.com[24.60.32.61]) by comcast.net (rwcrmhc12) with SMTP id <2004070819273301400jhulfe>; Thu, 8 Jul 2004 19:27:34 +0000 Message-ID: <005501c46521$ac23ccd0$0500005a@MrNat> From: "Robert Hunt" To: Subject: <%@ include %> files and Jasper/Ant Date: Thu, 8 Jul 2004 15:27:55 -0400 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 1 X-MSMail-Priority: High X-Mailer: Microsoft Outlook Express 6.00.2800.1409 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1409 X-Virus-Checked: Checked X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N I'm trying to use Ant (in stand-alone fashion) to build a set of JSPs. The JSPs compile, execute and serve up HTML fine when compiled under Tomcat 5.0.25; only the "root" JSPs generate .java files. Eg. FileA.jsp contains a <%@ include="FileB.jsp" %> directive. When requested through the Tomcat web server, only FileA_jsp.java and FileA_jsp.class are created. However, when I run Ant (or JspC) from the command line (using the sample from "http://jakarta.apache.org/tomcat/tomcat-5.0-doc/jasper-howto.html#Web Application Compilation" for build.xml), it creates both FileA_jsp.java and FileB_jsp.java. The build then fails because FileB_jsp.java's compilation, by itself fails without having the context of being code included in FileA. How do Jasper/Ant running behind the scenes under the Tomcat webserver know not to emit and compile the dependent files? And why would Jasper/Ant running standalone (I'm using Ant 1.6.1 as-is from the .ZIP distribution) NOT produce same output? --------------------------------------------------------------------- To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org For additional commands, e-mail: tomcat-user-help@jakarta.apache.org