I developed a webapplication and it is running properly. But in most of the places i used reference link like "http://host:portnumber/project/some.jsp?employee_id=123" so an end user can trace my parameter(employee_id).
But i would like to show my url without any parameter like "http://host:portnumber/project/some.jsp" in the same time i should get parameters also.
My Jsp Code:
Is there any simple way to rewrite my url?
Venki
http://saalram.com
ankur rathi
Ranch Hand
Joined: Oct 11, 2004
Posts: 3818
posted
0
Venki Ananth wrote:Hello All,
I developed a webapplication and it is running properly. But in most of the places i used reference link like "http://host:portnumber/project/some.jsp?employee_id=123" so an end user can trace my parameter(employee_id).
But i would like to show my url without any parameter like "http://host:portnumber/project/some.jsp" in the same time i should get parameters also.
My Jsp Code:
Is there any simple way to rewrite my url?
Why are you hardcoding employee_id as 123?
You can use a form and 'post' method in form to avoid form parameters in URL.
Venki Ananth
Ranch Hand
Joined: Dec 17, 2008
Posts: 32
posted
0
Hi ankur,
Thanks! I can not use forms in my pages and also i dont want to use post method . User should click only on "hyper links" and next page should load according to the parameters.
Any ways to "rewrite URL" ?
This message was edited 1 time. Last update was at by Venki Ananth
Venki Ananth
Ranch Hand
Joined: Dec 17, 2008
Posts: 32
posted
0
Hi all.
I found a solution . I used form.submit() script and sending hidden parameters to next page. Fine now its not visibile with url.