To answer my own question, this works:

    @Inject
    private RequestGlobals requestGlobals;

javax.servlet.http.HttpServletRequest request = requestGlobals.getHTTPServletRequest();


Tim Koop
t...@timkoop.com <mailto:t...@timkoop.com>
www.timkoop.com <http://www.timkoop.com>

On 04/05/2011 2:06 PM, Tim Koop wrote:
I'm using some third party Java code that wants to call request.getRequestURL() where request is a javax.servlet.http.HttpServletRequest instance. I know enough to put

    @Inject
    private org.apache.tapestry5.services.Request request;

in my page Java file, but for some reason org.apache.tapestry5.services.Request doesn't contain the getRequestURL() method that javax.servlet.http.HttpServletRequest does.

How can I get the requested URL of the page? And I also need request.getQueryString().

Thanks.

p.s. I love Tapestry, and thank you very much to all the people who respond to this group answering our questions!



---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org

Reply via email to