You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Sam Newman <sa...@stamplets.com> on 2001/04/18 17:52:45 UTC

Getting the query string in a tag handler

Does anyone know how I can access the Query String in a tag handler? I can
access the context of the page, and frm this get a ServletRequest. However
the queryString is normally accessed from a HttpServletRequest, a
ServletRequest subclass. Do I jsut try casting the request I get to a
HttpServletRequest object and get the query string that way?

sam


Re: Getting the query string in a tag handler

Posted by Sam Newman <sa...@stamplets.com>.
Its ok, I solved it. I just cast the ServletRequest from pageContext to a
HttpServletRequest

sam
----- Original Message -----
From: "Sam Newman" <sa...@stamplets.com>
To: <to...@jakarta.apache.org>
Sent: Wednesday, April 18, 2001 4:52 PM
Subject: Getting the query string in a tag handler


> Does anyone know how I can access the Query String in a tag handler? I can
> access the context of the page, and frm this get a ServletRequest. However
> the queryString is normally accessed from a HttpServletRequest, a
> ServletRequest subclass. Do I jsut try casting the request I get to a
> HttpServletRequest object and get the query string that way?
>
> sam
>