my dog learned polymorphism*
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
Author

sessions problem..urgent..

prasad bhn
Greenhorn

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.
prasad.
[ 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)
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: sessions problem..urgent..
 
Similar Threads
newbie : session problem
Interview questions on servlets
servlets
Why doesn't exercise 8-1 from Murach's Java Servlets work for me on IE7?
Session in an application having html,servlets,Jsp