Win a copy of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js this week in the JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Strip Parameters before Forwarding?  RSS feed

 
Dave Soto
Ranch Hand
Posts: 55
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
There are certain times when I would like to strip the parameters of a request, after I have dealt with them, but before (or while) I forward using a dispatcher. Is there any way to delete or remove parameters selectively?
I seem to remember doing this before (maybe), but I can't seem to find the code where I did it. Thanks.
 
Dave Van Even
Ranch Hand
Posts: 101
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
java.lang.String)" TARGET=_blank rel="nofollow">http://java.sun.com/j2ee/j2sdkee/techdocs/api/javax/servlet/ServletRequest.html#removeAttribute(java.lang.String)
ServletRequest.removeAttribute(java.lang.String paramName)
 
Dave Soto
Ranch Hand
Posts: 55
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Heh... I'm kicking myself now. I was fooled by the fact that there are getters and setters for attributes, but only getters for parameters. Well, that's what I'll tell myself anyway.
By the way, thanks.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!