Re: Committing sendRedirect()

2008-10-22 Thread Leon Rosenberg
On Thu, Oct 23, 2008 at 2:12 AM, Tore Eriksson <[EMAIL PROTECTED]> wrote: >> Tore Eriksson wrote: >> > Hello everybody, >> > >> > As I found a solution to my problem, I thought I would share it in case >> > someone else comes up against the same issue. The reason for the client >> > not acting on t

Re: Committing sendRedirect()

2008-10-22 Thread Tore Eriksson
> Tore Eriksson wrote: > > Hello everybody, > > > > As I found a solution to my problem, I thought I would share it in case > > someone else comes up against the same issue. The reason for the client > > not acting on the redirect is that sendRedirect does not send any > > Content-length header, a

Re: Committing sendRedirect()

2008-10-21 Thread Pid
Tore Eriksson wrote: > Hello everybody, > > As I found a solution to my problem, I thought I would share it in case > someone else comes up against the same issue. The reason for the client > not acting on the redirect is that sendRedirect does not send any > Content-length header, and the client

Re: Committing sendRedirect()

2008-10-20 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Tore, Tore Eriksson wrote: > The reason for the client > not acting on the redirect is that sendRedirect does not send any > Content-length header, and the client will then wait for an eventual > Content body until the servlet finishes. This could be

Re: Committing sendRedirect()

2008-10-20 Thread Tore Eriksson
Hello everybody, As I found a solution to my problem, I thought I would share it in case someone else comes up against the same issue. The reason for the client not acting on the redirect is that sendRedirect does not send any Content-length header, and the client will then wait for an eventual Co

Re: Committing sendRedirect()

2008-07-29 Thread Tore Eriksson
Hello again, Thanks for the response, but it seems like my phrasing was a bit unclear. The problem is not the second redirect - in fact there will be no multiple redirects. The second redirect is only there for the case when less than 25 hits are found and the first redirect is not called. The if

Re: Committing sendRedirect()

2008-07-29 Thread Luca Cicale
-- From: "Tore Eriksson" <[EMAIL PROTECTED]> Sent: Tuesday, July 29, 2008 4:00 AM To: Subject: [programmazione] Committing sendRedirect() Hi everybody, I have a problem with redirects in Tomcat 5.5.25. I am doing a Lucene search and would like to send a redirect after finding

Re: Committing sendRedirect()

2008-07-29 Thread Alan Chaney
Tore Your code below is written as though the 'out' was like writing data to a console. The processing in a servlet is part of a request/response cycle, where the 'request' tells it what to do and the response is the reply. Because of the nature of the request/response cycle you only get on

Committing sendRedirect()

2008-07-28 Thread Tore Eriksson
Hi everybody, I have a problem with redirects in Tomcat 5.5.25. I am doing a Lucene search and would like to send a redirect after finding the top 25 hits, commit this response, and then continue processing the remaining hits. The relevant parts of the doPost() code are as below: final int PARTIA