yes the both files are in same dir

and jsp:forword is working but
sendRedirect was NOT working and belive me it hangs up my tomcat.
and because of tomcat it gives me error





                      Bhushan_Bhangale
                      <Bhushan_Bhangale@I        To:       [EMAIL PROTECTED]
                      NFOSYS.COM>                cc:
                      Sent by: A mailing         Subject:  Re: session error
                      list about Java
                      Server Pages
                      specification and
                      reference
                      <JSP-INTEREST@JAVA.
                      SUN.COM>


                      07/17/02 11:27 AM
                      Please respond to A
                      mailing list about
                      Java Server Pages
                      specification and
                      reference






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

===========================================================================
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