You could put the HttpServletRequest object itself in the model, either
by providing a getRequest() method or by calling setModel(request).

"serverRoot" will show up in the model, as will the request parameters
under the key "parameterMap".  Getting the attributes will be tougher
since there is no "getAttributeMap()" method, but you could fake it.

Jeff Schnitzer
[EMAIL PROTECTED]

> -----Original Message-----
> From: Charles N. Harvey III [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, September 25, 2002 2:08 PM
> To: [EMAIL PROTECTED]
> Subject: [Mav-user] accessing Request from domify
> 
> Hello.
> I would like all the values in the HttpServletRequest to be placed in
the
> <model> in domify.  I can access all the request values if I am using
> velocity because the VelocityViewServlet already puts the request
object
> in the context.  $request.getServerRoot(),
$request.getParameter('name').
> 
> I think all I have to do is turn all the parts of the request object
into
> a map and create a public method for get(ting) it.  Has anybody else
done
> this some other way?
> 
> Thanks.
> 
> 
> Charlie
> 
> 
> -------------------------------------------------------
> This sf.net email is sponsored by:ThinkGeek
> Welcome to geek heaven.
> http://thinkgeek.com/sf
> _______________________________________________
> Mav-user mailing list
> [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/mav-user
> Archives are available at http://www.mail-archive.com/


-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
_______________________________________________
Mav-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/mav-user
Archives are available at http://www.mail-archive.com/

Reply via email to