Return-Path: Delivered-To: apmail-jakarta-tomcat-user-archive@www.apache.org Received: (qmail 40988 invoked from network); 3 Feb 2005 23:36:28 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur-2.apache.org with SMTP; 3 Feb 2005 23:36:28 -0000 Received: (qmail 4604 invoked by uid 500); 3 Feb 2005 23:36:14 -0000 Delivered-To: apmail-jakarta-tomcat-user-archive@jakarta.apache.org Received: (qmail 4586 invoked by uid 500); 3 Feb 2005 23:36:13 -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 4572 invoked by uid 99); 3 Feb 2005 23:36:13 -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 sid.armstrong.com (HELO sid.armstrong.com) (204.74.20.252) by apache.org (qpsmtpd/0.28) with ESMTP; Thu, 03 Feb 2005 15:36:12 -0800 Received: from [192.168.1.100] (pcp01469955pcs.lncstr01.pa.comcast.net [68.82.237.80]) by sid.armstrong.com (8.12.8p1/8.12.8) with ESMTP id j13NXcTj032024 for ; Thu, 3 Feb 2005 18:33:38 -0500 Message-ID: <4202B567.5010909@joedog.org> Date: Thu, 03 Feb 2005 18:36:07 -0500 From: Tim Funk Organization: Human being User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.3) Gecko/20040910 X-Accept-Language: en-us, en, es-mx, de, sv MIME-Version: 1.0 To: Tomcat Users List Subject: Re: Taglib Question - Not a Tomcat Issue References: In-Reply-To: Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N Yes - it is safe to assume ((HttpServletRequest)super.pageContext.getRequest()) will work fine. -Tim Kalyan Inuganti wrote: > Hi, > > I am creating a JSP which in turn calls my XXXTagHandler.java which > extends javax.servlet.jsp.tagext.TagSupport. I would like to access > the HttpServletRequest object that is in the JSP's scope in the > XXXTagHandler class. What is the best way of getting the > HttpServletRequest object? > > Will ((HttpServletRequest)super.pageContext.getRequest()) do it? > > -------------------- > What I am trying to achieve: > > The JSP Page passes a Role Name to the TagHandler. The TagHandler > needs to call the isUserInRole("abc"); method of HttpServletRequest > and return a true/false to the JSP. > --------------------------------------------------------------------- To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org For additional commands, e-mail: tomcat-user-help@jakarta.apache.org