It's not a secret anymore!
The moose likes JSP and the fly likes sessions problem..urgent.. Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » JSP
Bookmark "sessions problem..urgent.." Watch "sessions problem..urgent.." New topic

sessions problem..urgent..

prasad bhn

Joined: May 04, 2001
Posts: 28
hi all
i am accessing servlets/jsp files in Netscape 4.61. i disabled cookies in the browser.
my servlets/jsp files are not working.
i read that when cookies are disabled, server will fall back to URL Rewriting...
i am using Tomcat 4.0.1. whats wrong??
thanks a lot for ur help.
[ July 25, 2003: Message edited by: prasad bhn ]

prasad bhuvanam
bharat nagpal
Ranch Hand

Joined: Oct 26, 2002
Posts: 76
I don't think Server will take care of URLRewriting. you will have to check this thing in your code only.
Is it working fine if cookies are enabled?
Ron Newman
Ranch Hand

Joined: Jun 06, 2002
Posts: 1056
URL rewriting will only work if you take care to make it work in all of your code.
In a JSP, use the JSTL <c:url> tag to create all URLs.
In a Servlet, use response.encodeURL() to create all URLs.

Ron Newman - SCJP 1.2 (100%, 7 August 2002)
I agree. Here's the link:
subject: sessions problem..urgent..
It's not a secret anymore!