Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

removing parameter from request object  RSS feed

 
Velika Srbija
Ranch Hand
Posts: 172
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I want to use jsp:forward statement but I don't want to forward some of already existing parameters.
What way I could remove them from request object?
 
Andres Gonzalez
Ranch Hand
Posts: 1561
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
have u tried request.removeAttribute(<your attribute name> ??
 
Bear Bibeault
Author and ninkuma
Marshal
Posts: 65825
134
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You can remove attributes from the request (a la the previous response) but I'm not sure you can muck around with the parameters.
hth,
bear
[ September 26, 2002: Message edited by: Bear Bibeault ]
 
Pradeep bhatt
Ranch Hand
Posts: 8933
Firefox Browser Java Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
use the <jsp aram tag within the jsp:forward and override the previous value.
 
Velika Srbija
Ranch Hand
Posts: 172
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
request.removeAttribute is for removing attribute from session when using URL-rewriting. Doesn't affect on request parameters.
I'm not sure how to implement <jsp aram ... />
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!