Return-Path: Delivered-To: apmail-jakarta-tomcat-user-archive@www.apache.org Received: (qmail 52652 invoked from network); 14 Dec 2004 22:02:41 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur-2.apache.org with SMTP; 14 Dec 2004 22:02:41 -0000 Received: (qmail 94859 invoked by uid 500); 14 Dec 2004 21:43:40 -0000 Delivered-To: apmail-jakarta-tomcat-user-archive@jakarta.apache.org Received: (qmail 94825 invoked by uid 500); 14 Dec 2004 21:43:40 -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 94790 invoked by uid 99); 14 Dec 2004 21:43:40 -0000 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: pass (hermes.apache.org: local policy) Received: from imp1.ocis.temple.edu (HELO imp1.temple.edu) (155.247.166.81) by apache.org (qpsmtpd/0.28) with ESMTP; Tue, 14 Dec 2004 13:43:35 -0800 Received: from [155.247.27.104] (alpha.ocis.temple.edu [155.247.27.104]) by imp1.temple.edu (8.12.3/8.11.3/SuSE Linux 8.11.1-0.5) with ESMTP id iBELhXch026705 for ; Tue, 14 Dec 2004 16:43:33 -0500 Message-ID: <41BF5E83.4080405@temple.edu> Date: Tue, 14 Dec 2004 13:43:31 -0800 From: Dwayne Ghant User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.1) Gecko/20040707 X-Accept-Language: en-us, en MIME-Version: 1.0 To: Tomcat Users List Subject: Re: [newbie] Container Managed Security - preventing direct access to .jsp References: In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N Have you tried writing a session bean??? if not just write a session bean and import it as a header in all you *.jsp pages. The sessions will controll the flow of the application. ex: <%@ include file="Secrity_stuff.jsp" %> This is common in writing applications. Robert Taylor wrote: >Thanks Hassan. I didn't realize that was added to the 2.4 spec. >Thanks for pointing that out. > >Even so, it would be nice to know how to use CMS to achieve this. > >Maybe a better way to form the question would be how do I use >CMS to protect .jsp pages from direct access and return a user >friendly page/message when a .jsp page is requested without going through >the controller? > > >/robert > > > >>-----Original Message----- >>From: Hassan Schroeder [mailto:hassan@webtuitive.com] >>Sent: Tuesday, December 14, 2004 2:21 PM >>To: Tomcat Users List >>Subject: Re: [newbie] Container Managed Security - preventing direct >>access to .jsp >> >> >>Robert Taylor wrote: >> >> >> >>>Please let me know if this questions is just too obvious >>>and I'll gladly RTFM... >>> >>> >>See below :-) >> >> >> >>>It just seems like a common idiom to provide a portable mechanism >>>for protecting direct access to .jsp so as to enforce access through >>>some controller. I have in the past placed .jsp files "behind" WEB-INF, >>>but I don't believe that is portable and would like to use CMS to achieve >>>this. >>> >>> >>Given that the Java" Servlet Specification Version 2.4, page 70 sez: >> >> A special directory exists within the application hierarchy >> named WEB-INF. This directory contains all things related to >> the application that aren't in the document root of the >> application. The WEB-INF node is not part of the public >> document tree of the application. No file contained in the >> WEB-INF directory may be served directly to a client by the >> container. >> >>I don't know how much more "portable" you want it to be :-) >> >>HTH! >>-- >>Hassan Schroeder ----------------------------- hassan@webtuitive.com >>Webtuitive Design === (+1) 408-938-0567 === http://webtuitive.com >> >> dream. code. >> >> >> >>--------------------------------------------------------------------- >>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 > > > -- Dwayne A. Ghant Application Developer Temple University 215.204.5555 dghant@temple.edu --------------------------------------------------------------------- To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org For additional commands, e-mail: tomcat-user-help@jakarta.apache.org