This week's book giveaway is in the Jobs Discussion forum.
We're giving away four copies of Soft Skills and have John Sonmez on-line!
See this thread for details.
The moose likes JSP and the fly likes Hiding parameters from URL Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Soft Skills this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Java » JSP
Bookmark "Hiding parameters from URL " Watch "Hiding parameters from URL " New topic
Author

Hiding parameters from URL

Saurabh Agarwal
Greenhorn

Joined: Aug 27, 2007
Posts: 22
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
Marshal

Joined: Mar 22, 2005
Posts: 42906
    
  69
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

Joined: Aug 27, 2007
Posts: 22
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
Marshal

Joined: Mar 22, 2005
Posts: 42906
    
  69
GET parameters will always be part of the URL; you have to use POST if you want to avoid that.
mnadeem chishti
Greenhorn

Joined: Aug 07, 2006
Posts: 11
Change the form method to post
<form method="POST" action="">
</form>

doing so will hide the parameters.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Hiding parameters from URL