wood burning stoves 2.0*
The moose likes Tomcat and the fly likes session problem in tomcat 5.0.30 Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Products » Tomcat
Bookmark "session problem in tomcat 5.0.30" Watch "session problem in tomcat 5.0.30" New topic

session problem in tomcat 5.0.30

Rad krishnan

Joined: Oct 14, 2005
Posts: 1
I have two jsp and one servlet. If I set a session variable in one jsp and redirect to another JSP page I am able to view the session variable in the redirected JSP page. But if I redirect from one JSP to the other JSP using a servlet and set a session variable in the servlet I am not able to view the variable in the redirected JSP page the session variable becomes null.

I use response.sendRediect(); to redirect from the servlet to JSP.

The configaration that I use is

Tomcat - 5.0.30
Operating System - Linux FreeBSD
Servlet - 2.4
JSP - 2.0
Java - 1.4.2-p7

So please help me on this issue.

Thank you,
dimpsonu arora
Ranch Hand

Joined: Aug 13, 2003
Posts: 51
Plz show me the code of jsp and servlet
Consider Paul's rocket mass heater.
subject: session problem in tomcat 5.0.30
Similar Threads
Tomcat error: org.apache.jasper.JasperException: Unable to compile class for JSP
Problem retrieving session value in jsp pagess
Confused - MVC, JSP, Servlet interaction
embedded 5.0.30 set env variables
on session expire in iframe - open login page in parent window