Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

[solved]Problem with servlet session management

 
chaitanya karthikk
Ranch Hand
Posts: 806
Java MySQL Database Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi everybody, I am chaitanya, I have created a jsp page which will set a session, next from there I am calling a servlet, if the session is declared it must print Hi, else it must redirect me to another page. The problem is I did not create any session in the jsp page. If I am trying to call the servlet it is printing Hi instead of redirecting me to another page. The sample code is here:

callservlet.jsp


SimpleServlet.java


web.xml file


Thank you all in advance.
 
chaitanya karthikk
Ranch Hand
Posts: 806
Java MySQL Database Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi everybody, please ignore this question. I got it. My problem has been solved
 
Sagar Rohankar
Ranch Hand
Posts: 2907
1
Java Spring Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
anusha chaitanya wrote:Hi everybody, please ignore this question. I got it. My problem has been solved

The easy and good way of notifying like this, is to EDIT your post subject, like
[SOLVED]Problem with servlet session management
This just cause any fellow ranchers time by visiting and reading the full post
 
chaitanya karthikk
Ranch Hand
Posts: 806
Java MySQL Database Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Sagar Rohankar wrote:
anusha chaitanya wrote:Hi everybody, please ignore this question. I got it. My problem has been solved

The easy and good way of notifying like this, is to EDIT your post subject, like
[SOLVED]Problem with servlet session management
This just cause any fellow ranchers time by visiting and reading the full post


Thanks for giving me a useful hint Sagar, I have done it
 
Sagar Rohankar
Ranch Hand
Posts: 2907
1
Java Spring Ubuntu
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic