tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Kalyan Inuganti <kinuga...@gmail.com>
Subject Taglib Question - Not a Tomcat Issue
Date Thu, 03 Feb 2005 23:23:07 GMT
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

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


Mime
View raw message