File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Web Component Certification (SCWCD/OCPJWCD) and the fly likes Can anybody explain me Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


JavaRanch » Java Forums » Certification » Web Component Certification (SCWCD/OCPJWCD)
Reply Bookmark "Can anybody explain me" Watch "Can anybody explain me" New topic
Author

Can anybody explain me

chandraiah chintakayalu
Ranch Hand

Joined: Aug 30, 2007
Posts: 32
Hi everyone,
can anybody explain me this content
"URL rewriting kicks in ONLY if cookies fail, and ONLY if you tell the response to encode the URL"


Thanks in advance,
Chandraiah


SCJP-5 86%,SCWCD-soon
Anand Bhatt
Ranch Hand

Joined: May 30, 2007
Posts: 187
Both are session management mechanism.The Container first rely on Cookies for session management and if somehow cookies are not working(client disable the cookie in browser),then container use URL rewriting for session management and that happen or comes in action only if all the URLs in the dynamic pages are encoded using the HttpServletResponse's encodeURL(java.lang.String url) method .This method automatically append a ID with all the URLs and with further request from client that ID will be returned in request header. So that container can still manage session even if cookies are disable.
 
I agree. Here's the link: http://zeroturnaround.com/jrebel - it saves me about five hours per week
 
subject: Can anybody explain me
 
Similar Threads
Servlet
class & class loader
JSP Architecture
PARSING
related to arithmetic operations on datatype.