Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Hiding parameters from URL

 
Saurabh Agarwal
Greenhorn
Posts: 26
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi
is there any way by which i can hide Parameters in URL.
I have to use "post" method only.
I am hardcoding parameters in URL from a jsp page...
then submitting the page...to another jsp..
now in this second jsp these parameters could be sen at URL...

i want to hide these Parameters.....

Is there any approach by which i could achieve this....

thanks in advance......
 
Ulf Dittmer
Rancher
Pie
Posts: 42967
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Why don't you make those parameters hidden fields of the form you're submitting? Of course, they're still part of the HTML page, and can be seen by anyone who cares to look at the page source.
 
Saurabh Agarwal
Greenhorn
Posts: 26
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi
I have made parameter field hidden.
now submitted the form..
but passed parameters are still visible in URL...

My point is that i dont want to show those parameters in URL....
"Post" is an option other than "Get"
but is there any other way to do this......

thanks.
 
Ulf Dittmer
Rancher
Pie
Posts: 42967
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
GET parameters will always be part of the URL; you have to use POST if you want to avoid that.
 
mnadeem chishti
Greenhorn
Posts: 11
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Change the form method to post
<form method="POST" action="">
</form>

doing so will hide the parameters.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic