As i understand Url Rewriting is used when the cookies are disabled by the client. But if the client accepts cookies then url Rewriting is useless(waste of time in writing the code related to urlrewriting stuff).
So does that mean that we use urlrewriting ONLY TO BE at safer side. ?
SCJP 6
Why to worry about things in which we dont have control, Why to worry about things in which we have control ! !
Containers only do URL Rewriting if the client doesn't accept cookies. So for the first requests all the links will be rewritten (as the container doesn't know if client accepts cookies), and if the client accepts cookies, then URL Rewriting will be skipped from the second request...
yes
you should ALWAYS use <c:url>, <c:redirect>, response.encodeURL, response.encodeRedirectURL.
And the container should take care about determining if you have cookies enabled (and encoding is not needed), or you have cookies disabled and it needs to keep encoding urls
Yeah. What he said. Totally. Wait. What? Sorry, I was looking at this tiny ad:
a bit of art, as a gift, that will fit in a stocking