use jsp:forward instead of response.sendRedirect().

-----Original Message-----
From: Ashish Kulkarni [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, July 17, 2002 9:31 AM
To: Tomcat Users List
Subject: 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:
<mailto:[EMAIL PROTECTED]>
For additional commands, e-mail:
<mailto:[EMAIL PROTECTED]>

--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to