Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
The moose likes JSP and the fly likes URL rewriting for the links Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » JSP
Bookmark "URL rewriting for the links" Watch "URL rewriting for the links" New topic

URL rewriting for the links

sreenath reddy
Ranch Hand

Joined: Sep 21, 2003
Posts: 415

I have my webapplication which is running on tomcat ....and as of now i havent encoded any of my links in the web application ...they are like
<a href='/'></a>

Is it my duty to keep all the URLs encoded so that if the client diables the browser this would be helpful ??

Currently then if a client disables the cookies my application should not work properly right ??

Can any one enlighten this
Adrian Enns
Ranch Hand

Joined: Aug 11, 2004
Posts: 48
I'm not sure I understand the question. I take it you're asking whether or not it is your responsibility to rewrite URLs should cookies not be enabled by someone's browser?
sreenath reddy
Ranch Hand

Joined: Sep 21, 2003
Posts: 415
Hi adrian

Exactly .....u got my problem .Now u can tell me something
Adeel Ansari
Ranch Hand

Joined: Aug 15, 2004
Posts: 2874
This will definitely help.
Vijay Kumar

Joined: Dec 20, 2004
Posts: 1
You can JSTL <c:url> tag for each of urls in your page to make sure that url-writting is done if cookies are not enabled.
I agree. Here's the link:
subject: URL rewriting for the links
It's not a secret anymore!