tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Peter Coppens <>
Subject Re: Where is the POSTED data on login redirect?
Date Sun, 28 Oct 2007 19:21:12 GMT

Thanks David, that helps.

Something seem to go wrong for me though. I guess my question was not
sufficiently exact.

The data is posted as "application/xml" and the servlet consumes it using
request.getReader().read(...) The thing is that when the authentication
process completes and redirects the original post to the servlet, the
request.getReader().read(...) immediately returns -1. The data is in the
buffer alright, but the pointer into the buffer is not positioned at the
beginning. I have tried adding a reset but that does not seem to help.

Any thoughts?



David Delbecq-2 wrote:
> They are automatically saved by form authentification system and
> restored after form authentification. Your servlet won't be able to make
> the difference between a direct hit and a hit with post restored after
> form authentification.
> Please note, however, that the size of post request saved by tomcat is
> limited by default to 4K. If it's bigger, your servlet will get an empty
> request. To increase that size, go to Http connector configuration of
> tomcat, and change or set the maxSavePostSize.
> Regards,
> Delbecq David
> Op zondag 28-10-2007 om 02:41 uur [tijdzone -0700], schreef Peter
> Coppens:
>> Hello,
>> When a user posts data to a servlet after the session has expired
>> (timeout)
>> tomcat automatically redirects to my login page. After successful login,
>> tomcat will redirect to the original request.
>> I am looking for way to access the originally posted data when it
>> 'arrives'
>> in the servlet (after tomcat has redirected after the login).
>> Any guidance or pointers would be most warmly welcomed!
>> Thanks,
>> Peter
> ---------------------------------------------------------------------
> To start a new topic, e-mail:
> To unsubscribe, e-mail:
> For additional commands, e-mail:

View this message in context:
Sent from the Tomcat - User mailing list archive at

To start a new topic, e-mail:
To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message