I had a problem where on any page that I used 'sendRedirect', I would get multiple pages in the same request. I changed all of my 'sendRedirect' calls to '<jsp:forward page="page.jsp" />' and my pages worked fine after that. (The value for the 'page' attribute can be any URL. The URL is relative to the directory of JSP that has the call to 'jsp:forward'.)
Brad
=================================================
Bradley M. Handy | 106 E. Main St.
Programmer Analyst II | Station 22
Spring Arbor College | Spring Arbor, MI 49283
-------------------------------------------------
Phone: (517) 750-6675 (off-campus number)
1675 (on-campus number)
Email: [EMAIL PROTECTED]
[EMAIL PROTECTED]
-----Original Message-----
From: Shahed Ali [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, February 20, 2001 12:41 PM
To: [EMAIL PROTECTED]
Subject: Repost : sendRedirect and KeepAlive problem
Sorry for this repost.
I searched the mail archives and did not find anyone who has
a problem similar to mine.
I have an application which has a logout page that
1. invalidates the session
2. redirect the user back to the index.jsp page.
When I click on the logout link, I get back to the index.jsp page, but
the browser progress bar goes on and on. There is an image that
is present on the page that does not load until the timeout is reached.
I have tomcat 3.2.1 with mod_jk and ajp13 tied to apache 1.3.14 and
jdk 1.3 on Solaris Intel. In my httpd.conf I have set KeepAlive to "on"
I modified all my pages that use sendRedirect to have a
return;
immediatly after the call to sendRedirect().
However, I face this problem only on my logout page.
Has this got something to do with the fact that I am invalidating the
session ?
I even removed the session.invalidate(), but I still face the problem on
logout.jsp
However, my other pages where I use redirection work fine.
Any ideas ?
TIA
Shahed.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]
