iZone Infotech wrote:
>
> Nope!!  This does not help.
>
> I checked all possible combinations.  The problem is at the servlet side.
> In JSP-JSP, I get the session value.  But in both JSP-Servlet and
> Servlet-JSP the session values are lost.  It looks as if the scope of the
> session ends at the end of Servlet.
>
> Funny part, after evoking my servlet, which puts some value to the session,
> I went and checked the session example of TomCat.  The session values added
> by me was shown there.  That means the values are in the session.  It gets
> lost somewhere when I use sendRedirect().
>
> Does anybody know whether I have to do some settings in TomCat?  I am new to
> TomCat.

A wild guess: the servlet and the JSP page are in two different applications.
Make sure both of them are part of the same web application (the URI starts
with the same prefix, e.g. "/examples" for the Tomcat examples application).
Sessions are not shared between applications. If you can't figure it out,
tell us exactly what URLs you use to invoke the servlet and the JSP, and
how your webapps stucture looks like.

Hans
--
Hans Bergsten           [EMAIL PROTECTED]
Gefion Software         http://www.gefionsoftware.com
Author of JavaServer Pages (O'Reilly), http://TheJSPBook.com

===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST".
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