From tomcat-user-return-116549-apmail-jakarta-tomcat-user-archive=jakarta.apache.org@jakarta.apache.org Wed Dec 01 18:55:37 2004 Return-Path: Delivered-To: apmail-jakarta-tomcat-user-archive@www.apache.org Received: (qmail 13975 invoked from network); 1 Dec 2004 18:55:37 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur-2.apache.org with SMTP; 1 Dec 2004 18:55:37 -0000 Received: (qmail 55431 invoked by uid 500); 1 Dec 2004 18:54:59 -0000 Delivered-To: apmail-jakarta-tomcat-user-archive@jakarta.apache.org Received: (qmail 55408 invoked by uid 500); 1 Dec 2004 18:54:59 -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 55394 invoked by uid 99); 1 Dec 2004 18:54:59 -0000 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_HELO_PASS,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (hermes.apache.org: domain of justinr@nextengine.com designates 65.206.241.134 as permitted sender) Received: from Unknown (HELO lithium.nextengine.com) (65.206.241.134) by apache.org (qpsmtpd/0.28) with ESMTP; Wed, 01 Dec 2004 10:54:57 -0800 Received: from justinr2-2000.nextengine.com ([65.206.241.133]) by lithium.nextengine.com (8.11.6/8.11.6) with ESMTP id iB1Ist917470 for ; Wed, 1 Dec 2004 10:54:55 -0800 Message-Id: <6.1.2.0.2.20041201104831.03748958@pop.synerdyne.com> X-Sender: justinr@pop.synerdyne.com X-Mailer: QUALCOMM Windows Eudora Version 6.1.2.0 Date: Wed, 01 Dec 2004 10:54:51 -0800 To: "Tomcat Users List" From: Justin Ruthenbeck Subject: Re: Delivering JSPs without source In-Reply-To: <41AD527F.9040301@sanasecurity.com> References: <41ABB175.1030206@sanasecurity.com> <6.1.2.0.2.20041130164907.03631e18@pop.synerdyne.com> <41AD527F.9040301@sanasecurity.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; format=flowed X-Virus-Checked: Checked X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N At 09:11 PM 11/30/2004, you wrote: > > It would seem that if a web page request comes in for a .jsp page, >Tomcat would have no file to compare the date against in your scheme of >putting the compiled .jsp page in a .jar file only. This is only done for non-compiled jsp files that are served by the JspServlet (mapped to *.jsp in the global web.xml). When the jsps are precompiled, the servlets they become are mapped in your own web.xml, meaning they are treated *exactly* like servlets and no date, compiling, or other shenanigans are done. >How do most companies deploy their web applications? Do they include >the source code for the jsps? Almost all of the companies I have worked >for have been very protective of their source code and won't allow it to >be released. I'm still not clear as to why you have to put your compiled JSPs in common/lib. I understand that some of your classes much be there, but why won't you split your classes into multiple jars? The "normal" way this is done is to precompile the jsps, bundle them into /WEB-INF/lib/myapp-jsp-compiled.jar, bundle the majority of your POJO to /WEB-INF/lib/myappcore.jar, and bundle your container service implementation classes (custom realms, valves, anything the main classloader needs) into /common/lib/app-container.jar. Will this not work in your case? justin ______________________________________________ Justin Ruthenbeck Lead Software Engineer, NextEngine Inc. justinr - AT - nextengine DOT com Confidential. See: http://www.nextengine.com/confidentiality.php ______________________________________________ --------------------------------------------------------------------- To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org For additional commands, e-mail: tomcat-user-help@jakarta.apache.org