• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Will the browser Session created in the doPost methods be recognised by the doGet

 
Milan
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am a relatively new guy in Servlets and would be higly obliged
if someone can help me with this querry.
I have creted an HttpServletSession in the doPost() method of the Servlet ( for my Project of Online Exam ).
There is a form in the Post method which invokes the doGet() method of the same Servlet .However in the doGet method, the browser session is NOT recognised!Why is it so ?
Morever, The doGet( ) method, than , in turn invokes the doPost( ) of the same Servlet. At this stage, i.e , in the doPost( ) method the browser instance is recognised.
What is the probelem ?
 
William Brogden
Author and all-around good cowpoke
Rancher
Posts: 13058
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The session certainly should be available to both the doGet and doPost methods of the servlet. Thats the whole idea after all.
How are you checking for the session in doGet?
 
Anonymous
Ranch Hand
Posts: 18944
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
drop ur code here yaaar....letz cceeee whatz the problem with you
surya
------------------
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic