• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

session problem in tomcat 5.0.30

 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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,
Rad
 
Ranch Hand
Posts: 51
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Plz show me the code of jsp and servlet
 
Put a gun against his head, pulled my trigger, now he's dead, that tiny ad sure bled
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic