Re: Accessing the raw HttpServletRequest object
Attila Szegedi <[email protected]>
| Newsgroups | gmane.comp.web.freemarker.user |
|---|---|
| Message-ID | <[email protected]> |
Nope - adding request object as an attribute of itself (i.e. in a filter that intercepts requests to the servlet) is the standard procedure. Attila. On 2008.02.14., at 9:31, Christopher Currie wrote: > Hello, > > Is there any way to access the HttpServletRequest object? The > HttpRequestHashModel has a getRequest parameter, but the expression: > > Request.request > > tries to look up a request attribute on the request, and > > Request.getRequest() > > doesn't seem to work. I've worked around this by inserting the request > object as an attribute of itself (called ServletRequest), but I wanted > to know if there were a more straightforward way to achieve the same > goal. > > Thanks, > Christopher ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/