Hi all.
I've got very annoying problem, I hope that anyone knows how it
happens:
I've got quite complicated structure of JSP scripts but generally
it looks like that:

- There is main.jsp
- from main.jsp I call
getRequestDispatcher("/template.jsp").forward(request,response);
- in template.jsp I call
request.getRequestDispatcher("/file.jsp").include(request,response);
- in file.jsp I print some data from beans and there is a link to
main.jsp

in effect, each time I choose a link to main.jsp I get the other
sessionId
than it was in previous step. That means that new HttpSession object
is created after each request and all beans are recreated.

Why does this happen? My first thought was that there is no sessionid
appended to HttpResponse - but it's automatic operation of web server,
so I think it must be my fault somewhere.

My server is Tomcat 3.2, JDK 1.3 and my internet browser accepts
cookies.

Please help

Michal

===========================================================================
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