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 URL Rewrting. Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Certification » Web Component Certification (SCWCD/OCPJWCD)
Bookmark "URL Rewrting." Watch "URL Rewrting." New topic
Author

URL Rewrting.

Andy Smith
Ranch Hand

Joined: Sep 28, 2003
Posts: 239
Is URL Rewriting dependent upon cookies, as JSESSIONIS is a cookie,
so if Cookies are disabled will this work?


Share Knowledge to gain it.
SCJP 2, SCWCD 2, SCDJWS, IBM 141 (In Progress), IBM 486 (Next)
Vibha Jindal
Greenhorn

Joined: Nov 25, 2003
Posts: 10
URL rewriting is not dependent on cookies. In fact, it is quite useful when cookies are disabled.
URL rewriting, as the name suggests, rewrites the URL.
True, JSESSIONID is a cookie. So, if cookies are disabled, JSESSIONID would not be available to the server from your browser.
To solve this problem, you can use URL rewriting, which will just append, say, JSESSIONID=<sessionIdValue> at the end of your URL, so that your server-side components can retrieve the session id from the URL instead of the cookie.
Andy Smith
Ranch Hand

Joined: Sep 28, 2003
Posts: 239
Thanx a lot Vibha...
URL Rewriting is substitute to the cookie..m i rite?
Cheers
[ November 25, 2003: Message edited by: Andy Smith ]
Vibha Jindal
Greenhorn

Joined: Nov 25, 2003
Posts: 10
u r welcome...
yepp, you can say that...
Although URL rewriting can mean a lot of things other than just substituting for cookies.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: URL Rewrting.