Help coderanch get a
new server
by contributing to the fundraiser
  • 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
  • Ron McLeod
  • Paul Clapham
  • Devaka Cooray
  • Liutauras Vilda
Sheriffs:
  • Jeanne Boyarsky
  • paul wheaton
  • Henry Wong
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Tim Moores
  • Carey Brown
  • Mikalai Zaikin
Bartenders:
  • Lou Hamers
  • Piet Souris
  • Frits Walraven

POSt button on JSP opening New session

 
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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,
 
Sheriff
Posts: 13411
Firefox Browser VI Editor Redhat
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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 VI Editor Redhat
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
What browser are you using?
 
Raman Nath
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thanks !!
It is working fine now..Had to reboot my machine.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic