You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Ashish Kulkarni <ku...@yahoo.com> on 2002/07/17 18:30:41 UTC

Check Session is valid & response.sendRedirect not working

Hi,
I am developing a webapplication with tomcat4.0.4 and
apache 2.0.39,
I want the user to login on first page, and then check
if the session is valid or not in each jsp, and
servlet.
So what is the best way to do it??
i am using jsp code code as below, but seems it that
response.sendRedirect("http://localhost/maps/pages/index.jsp");
does not work.

AS400 value = (AS400)session.getAttribute("as400");
System.out.println("value of as400 change env " +
value);
if (value == null)
{
System.out.println("there is no as400 so
response.sednRedirect");
response.sendRedirect("http://localhost/maps/pages/index.jsp");
System.out.println("i am not able to redirec");
}

this code works on JRun, Blazix, Websphere, Weblogic
so what is the problem
Ashish



__________________________________________________
Do You Yahoo!?
Yahoo! Autos - Get free new car price quotes
http://autos.yahoo.com

--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>