Get the tools you need to learn Java skills fast!
Video tutorials, eBooks, hands-on lab exercises, sample code.
Get started
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


Win a copy of The Software Craftsman this week in the Agile forum!
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
 
Have you tried LearnNowOnline? http://www.learnnowonline.com/
 
subject: Parameter removal from request for use in RequestDispatcher