Return-Path: Delivered-To: apmail-tomcat-users-archive@www.apache.org Received: (qmail 60043 invoked from network); 9 Jul 2008 20:56:10 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 9 Jul 2008 20:56:10 -0000 Received: (qmail 34288 invoked by uid 500); 9 Jul 2008 20:55:59 -0000 Delivered-To: apmail-tomcat-users-archive@tomcat.apache.org Received: (qmail 34261 invoked by uid 500); 9 Jul 2008 20:55:59 -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 34250 invoked by uid 99); 9 Jul 2008 20:55:59 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 09 Jul 2008 13:55:59 -0700 X-ASF-Spam-Status: No, hits=1.2 required=10.0 tests=SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (athena.apache.org: local policy) Received: from [64.99.136.139] (HELO smtprelay-virgin.hostedemail.com) (64.99.136.139) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 09 Jul 2008 20:55:04 +0000 Received: from filter.hostedemail.com (ff-bigip1 [10.5.19.254]) by smtprelay07.hostedemail.com (Postfix) with SMTP id C605F241EE5 for ; Wed, 9 Jul 2008 20:55:24 +0000 (UTC) X-SpamScore: 1 Received: from andrew1 (client-82-20-4-196.brhm.adsl.virgin.net [82.20.4.196]) by omf11.hostedemail.com (Postfix) with SMTP for ; Wed, 9 Jul 2008 20:55:23 +0000 (UTC) Message-ID: <011301c8e205$f53d0570$afb0fea9@andrew1> From: "Andrew Connick" To: "Tomcat Users List" References: <020301c8e1ca$216b9080$afb0fea9@andrew1> <4874CC5E.30305@apache.org> Subject: Re: Problems with jsp include files in sub-directories Date: Wed, 9 Jul 2008 21:54:13 +0100 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2800.1914 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1914 X-Spam-Summary: 50,0,0,886d04deec30d190,0d303eb6966a6906,a.connick@virgin.net,,RULES_HIT:69:355:379:392:539:540:541:542:543:567:599:600:601:945:960:967:973:980:988:989:1155:1156:1260:1277:1311:1313:1314:1345:1431:1437:1515:1516:1518:1534:1543:1587:1593:1594:1711:1712:1730:1747:1766:1792:2073:2075:2078:2393:2525:2551:2552:2553:2560:2564:2682:2685:2691:2693:2828:2857:2859:2892:2933:2937:2939:2942:2945:2947:2951:2954:3022:3027:3355:3865:3866:3867:3868:3869:3870:3871:3872:3873:3874:3934:3936:3938:3941:3944:3947:3950:3953:4361:4362:5007:6119:6120:6248:6261:7576:7679:7875:7903:7974,0,RBL:none,CacheIP:none,Bayesian:0.5,0.5,0.5,Netcheck:none,DomainCache:0,MSF:not bulk,SPF:,MSBL:none,DNSBL:none X-Virus-Checked: Checked by ClamAV on apache.org Hello Mark Thomas Thanks for your reply. I have got some information from my hosting company, my setup is: www.windsor-chamber.co.uk Which doesn't quite fit with your example, although I suspect that as appBase equals docBase I will have similar or same problem ? One further question, could you clarify your correct configuration example, I am not sure what the first line means ( mv .../webapps/yourApp .../webapps/ROOT ) Regards Andrew Connick ----- Original Message ----- From: "Mark Thomas" To: "Tomcat Users List" Sent: Wednesday, July 09, 2008 3:34 PM Subject: Re: Problems with jsp include files in sub-directories > Andrew Connick wrote: > > I'm having problems with the jsp includes directive where the jsp is in a sub-directory. > > I have 2 subdirectories: > > /admin > > /segments > > > > index.jsp contains the line <%@ include file="/segments/setup.jsp" %> which is fine > > > > admin/index.jsp also contains the line <%@ include file="/segments/setup.jsp" %> > > This is fine in my test environment, and used to work in my live environment (hosted by an external company) but has recently stopped working. > > > > I suspect the issue is that Tomcat now sees sub-directory /admin as a separate context. I believe I have proved this by running a simple admin/test.jsp that displays the results of request.getContextPath(). This shows blank in test and /admin in live. > > > > Given that it used to work and has now stopped, I think the hosting company should be able to correct this. However I am having considerable difficulty with this approach. As I cannot re-create the situation in my testing, I am not too sure how to proceed. > > > > So, I suppose my real questions are: > > - Is the way I have structured my code correct ? > > - How do I stop Tomcat treating each sub-directory as a different context (more specifically, how do Instruct the hosting company) ? > > This sounds like you have a setup of the form: > > > > > Is this the case? If you are on an older Tomcat version this will work (due > to a bug that has since been fixed) but it won't work on newer Tomcat > versions. The correct configuration (that works on all Tomcat versions) > should be: > mv .../webapps/yourApp .../webapps/ROOT > > > > HTH, > > Mark > > > > --------------------------------------------------------------------- > 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 > > > No virus found in this incoming message. > Checked by AVG - http://www.avg.com > Version: 8.0.138 / Virus Database: 270.4.7/1541 - Release Date: 7/8/2008 7:50 PM > > > --------------------------------------------------------------------- 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