File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Servlets and the fly likes Parameter removal from request for use in RequestDispatcher Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Servlets
Bookmark "Parameter removal from request for use in RequestDispatcher" Watch "Parameter removal from request for use in RequestDispatcher" New topic
Author

Parameter removal from request for use in RequestDispatcher

Surasak Leenapongpanit
Ranch Hand

Joined: May 10, 2002
Posts: 341
Does anyone know how to remove parameters from a request which will then be used in a RequestDispatcher.forward() call?
Frank Carver
Sheriff

Joined: Jan 07, 1999
Posts: 6920
One way is to wrap the request in a RequestWrapper which denies access to those parameters. A similar approact, but for adding or changing parameters is discussed in this recent post in this forum.


Read about me at frankcarver.me ~ Raspberry Alpha Omega ~ Frank's Punchbarrel Blog
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Parameter removal from request for use in RequestDispatcher