tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Christopher Schultz <ch...@christopherschultz.net>
Subject Re: URL Rewriting
Date Thu, 14 Jun 2012 18:52:33 GMT
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Kiran,

On 6/13/12 12:16 AM, Kiran Badi wrote:
> I have bunch of functionalities which are showing up with urls  as
> 
> http://localhost:8080/mysite/getmyservice.do?id=17 and I just need
> to hide them and show some neat url something like
> mysite/getmyservice.do without displaying parameters.

You need to send the id somehow: your options are GET (with 'id' in
the URL), POST (with 'id' in the POST body) or using something like
Javascript to communicate with the server so that the URL doesn't show
anything.

> Will hiding the url's cause any other issues ?

The downside to using POST is that pages cannot be (easily) bookmarked
by your users, and using the BACK button on the client becomes a
miserable user experience.

Why are you so eager to remove the ids from the URL?

- -chris
-----BEGIN PGP SIGNATURE-----
Version: GnuPG/MacGPG2 v2.0.17 (Darwin)
Comment: GPGTools - http://gpgtools.org
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAk/aMvEACgkQ9CaO5/Lv0PDTYACeKB4E2nw3+EqrtwTMIxpIDE/w
Rl0An0nV8HNxyT7O8+H4Nrw9PJ+J0m48
=T1zH
-----END PGP SIGNATURE-----

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Mime
View raw message