Go Premium for a chance to win a PS4. Enter to Win

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 246
  • Last Modified:

is that possible avoid to the url address in the browser showing the parameters when using JSTL tag <c:url> ?

I need some values pass to next page when clicked the link. but I don't want the url address in the browser showing the parameters. Right now i am using jstl tag <c:url> for the url rewrite.  But i am not sure how to avoid showing the parameters. or is there any way to do it other than url rewrite?
0
jeff1919
Asked:
jeff1919
1 Solution
 
ITcrowCommented:

If one has to do all the hiding in link itself, here is how it can be done.

<a href="http://some_domain/someurl.html?whatever"
onMouseOver="window.status='http://nothing_visible_on_mouseover'; return true"
onclick="window.status='http://nothing_visible_on_click'; return true;"
onfocus="window.status='http://nothing_visible_on_focus'; return true;"
onMouseOut="window.status=''; return true">Some Url</a>
0
 
ZonebitCommented:
Try changine your form tag to read something along the lines of:

<form method="post" action="<your page>" ... />
0
 
jeff1919Author Commented:
i am not using form.
0
 
AlexmipegoCommented:
Why are you hiding the parampters? If it is to avoid people to change them you can write a cookie with something like:
link1: domain/page.ext?ddf=3324&dfsdf=34342
link2: domain/page.ext?ddf=3324&dfsdf=343dsdfsdf42

and just point the links into a page like redirector.asp?link=2
then the redirector would redirect to the page referenced in the cookie. also to increase security you can use a session variable.
0

Featured Post

Vote for the Most Valuable Expert

It’s time to recognize experts that go above and beyond with helpful solutions and engagement on site. Choose from the top experts in the Hall of Fame or on the right rail of your favorite topic page. Look for the blue “Nominate” button on their profile to vote.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now