Hi All,

I am looking for some advice/direction on the following issue.

Backgound:
I wrote a servlet to enable people to download file, so that by using the
session mapping feature in Tomcat, one can enter the path
/download/userguide.zip and the download servlet is actually invoked, parses
the url and then goes to a seperated directory  outside of the web domain
and returns the file, but only after they had registered and logged in. As
per ususal, I used a session object to track the status of the user. If they
hadn't logged in then they were redirected to the jsp based login page,
otherwise they were able to download the file.

Everything was going great on IE then I tried it in in Netscape and it
failed.

The Problem:
Essentially, there seems to be some problem when you set a variable in a jsp
page and try and access the value via a servlet, although I don't see how
this is a problem due to the fact that a jsp page is compiled into a servlet
and both are accessing the same session objects.

Upon further investigation of this problem, I had ascertained that the
session variable had been created for a netscape browser and Tomcat was
acknowledging this fact (session.getID() test done both from jsp and servlet
which returned the same id). However, trying to retrieve values out of the
session object resulted in a returned NULL. Meanwhile, everything was
working smothely in IE.

We are using Tomcat 3.1 Beta 2, jdk 1.3, on Win NT.

The Question:
Has anyone had similar problems and has anyone come up with a solution to
the problem? I am hoping that we don't need to update tomcat to the latest
and greatest as we have just got our prod machine up and running sweet.

Cheers
        Stephen

===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets

Reply via email to