Is the login.jsp in same directory as of emp.jsp? If not then the sendRedirect path of 
login.jsp is wrong.

But in any case the browser should not hang.

-----Original Message-----
From: Vaishali S. Pandya [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, July 17, 2002 10:17 AM
To: [EMAIL PROTECTED]
Subject: session error


hi
i've used session in my app.
i putValue in session in login.jsp page after successfull login
      session.putValue("utype",utype);
and in all other pages(like emp.jsp) i getValue.
      String utype = (String)session.getValue("utype");
      if (utype==null || utype.equals("")){
            response.sendRedirect("login.jsp");
      }
but...
here when i try to open this emp.jsp or any other page directly it should
go to login.jsp but
it takes tooooo much time and at last gives me page not found type browser
error and hangs up.

Can anybody help me please?
Thanks
Vaishali
Reliance Ind Ltd
Ahmedabad

===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://archives.java.sun.com/jsp-interest.html
 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.jsp
 http://www.jguru.com/faq/index.jsp
 http://www.jspinsider.com

==========================================================================To 
unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://archives.java.sun.com/jsp-interest.html
 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.jsp
 http://www.jguru.com/faq/index.jsp
 http://www.jspinsider.com

Reply via email to