• Post Reply Bookmark Topic Watch Topic
  • New Topic

Prevent parameters from being visible?  RSS feed

 
Dave Soto
Ranch Hand
Posts: 55
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
When processing a request within a servlet, how can I prevent parameters from being visible in the address bar of the browser? I tried request.removeParameter, thinking it would remove the parameter from display, but that was not the case.
(By the way, thanks to Dave Van Even for his help on that subject. He gave me the right answer, I was just asking the wrong question.)
I'm sure this is probably a simple one.
 
mocca az
Ranch Hand
Posts: 93
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Use POST instead of GET in your <form>
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!