Mark Galbreath wrote:
[Re. overriding request parameters using request wrappers]
> This is actually pretty cool in concept!  Have you used it?


Yes, it shows up in two slightly different formats in my current
project. I extend HttpServletRequestWrapper with a custom implementation
partly in order to let multipart/form-data parameters show up using the
standard getParameter et al. (There are other application-specific
things going on.) There's also a sort of mock request object wrapping
the actual request object used to construct a pretend request of the
type expected by module A, when you're actually in module B, which you
can use to set request parameters expected by the module A code. It
seemed better than duplicating the module A functionality just because
module B didn't want/need to expose the same set of request parameters.


Gennis

___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".

Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html

Reply via email to