tomcat-taglibs-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Kris Schneider <k...@dotech.com>
Subject Re: HttpServletRequest/TagHandler - Scope Question
Date Thu, 03 Feb 2005 23:29:35 GMT
I'd do away with the reference to "super", but that should work fine.

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.
> 
> Any help will be greatly appreciated.
> 
> Thanks,
> Kalyan

-- 
Kris Schneider <mailto:kris@dotech.com>
D.O.Tech       <http://www.dotech.com/>

---------------------------------------------------------------------
To unsubscribe, e-mail: taglibs-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: taglibs-user-help@jakarta.apache.org


Mime
View raw message