How to hide the parameters passed through URL

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • tiijnar
    New Member
    • Nov 2008
    • 14

    How to hide the parameters passed through URL

    Hi,
    Im using the method of passing parameters through URL in JSPs
    eg.<a href="Test.jsp? parameter=abc"> Link</a>

    Ater executing it Im able to see the parameter in the url.
    http://localhost:8080/Project/Test.jsp?parameter=abc

    If I place cursor on the Link Im able to see the parameter in prompt area i.e toolbar which is at the bottom of the window.

    I want the parameter not to be seen.

    Can any one help me out.

    Thanks in advance,
    Tiijnar
  • chaarmann
    Recognized Expert Contributor
    • Nov 2007
    • 785

    #2
    make a form, use a hidden field inside and submit the form, then you can't see the parameters anymore.

    Code:
    <FORM name=myForm action="Test.jsp" method=post>
       <INPUT type=hidden name=parameter value="abc">
    </FORM>
    
    <B><a href="javascript:myForm.submit()" <I>Link</I></a></B>

    Comment

    Working...