• Post Reply Bookmark Topic Watch Topic
  • New Topic

POSt button on JSP opening New session  RSS feed

 
Raman Nath
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi ,

I am facing problem because POST button on my JSP is opening a new session of the servlet.

Architecture:
==============

First client goes to a Servlet thru URL . The Servlet initializes some beans and calls JSP to dynamically build the data . The JSP happens to contain a submit button with POST method . JSP calls the same servlet .

The problem is , When JSP calls the servlet , all session variables are lost because the session is new . This I am testing by session.isNew() function.

Can someone tell me how to get to the same session , by using POST method in JSP.

Txs,
 
Ben Souther
Sheriff
Posts: 13411
Firefox Browser Redhat VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The fact that you're using a using a form post should affect what session is being used. Are session cookies disabled in your browser?
 
Raman Nath
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks !! I checked with my friends computer. And session.isNew() is returning False and the code is working fine.
I checked all the internet options and both of our computer's settings matches.

Which particular setting should i look into ?

I again thank you .
 
Ben Souther
Sheriff
Posts: 13411
Firefox Browser Redhat VI Editor
 
Raman Nath
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
MS I.E 6.0

All the settings have been turned to Medium or Low. ( As additional notes : This site ( JAVARANCH ) got my login today from a new browser even though I logged in yesterday in another browser and had closed them.But still my JSP does not work. )
 
Raman Nath
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks !!
It is working fine now..Had to reboot my machine.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!