atom feed18 messages in org.apache.tomcat.usersRecovering from oversize upload excep...
FromSent OnAttachments
Mohan K. ChintalaJan 4, 2001 6:56 am 
Michael WentzelJan 4, 2001 11:25 am 
Craig R. McClanahanJan 4, 2001 11:28 am 
Michael WentzelJan 4, 2001 11:31 am 
Jeff FletcherJan 4, 2001 11:35 am 
Mike CampbellJan 4, 2001 11:36 am 
Craig R. McClanahanJan 4, 2001 11:49 am 
Kitching SimonJan 4, 2001 11:54 am 
Orestes MasJan 10, 2001 7:08 am 
Tal DayanJan 19, 2001 5:26 pm 
David WallJan 20, 2001 9:50 am 
Joe LaffeyJan 20, 2001 10:41 am 
David WallJan 29, 2001 12:27 pm 
Matt GossJan 30, 2001 6:40 am 
David WallFeb 4, 2001 11:04 am 
David WallFeb 4, 2001 11:34 am 
David WallFeb 4, 2001 4:10 pm 
Matt GossFeb 6, 2001 6:37 am 
Subject:Recovering from oversize upload exception ?
From:Tal Dayan (ta@zapta.com)
Date:Jan 19, 2001 5:26:40 pm
List:org.apache.tomcat.users

RE: Session ProblemHello,

We are trying to use the Oreilly servlet package to service requests from a form that is used to upload files. The form contains buttons, checkboxes, radio buttons, and several 'file' fields.

When request size is larger than the max size we allow, the constructor

new MultipartParser(req, 100000, true, true)

throws an exception, reporting about the size violation.

This is fine but when this happens, we cannot access the values of fields and buttons that were submitted. This significantly reduce our ability to to provide the user with a graceful error handling and all we can indicate in the error message that the total request size was above the limit and any setting of checkboxes and radio buttons is lost.

Are we missing something ? Any idea how to improve the error handling and to recover field values ?

Thanks,

Tal

-----Original Message----- From: Mike Campbell [mailto:mike@s1.com] Sent: Thursday, January 04, 2001 11:37 AM To: 'tomc@jakarta.apache.org' Subject: RE: Session Problem

Craig (or anyone),

> You might want to turn your thinking inside out on how to > handle this problem > :-).

I came in on this discussion thread mid-strand, and have a question. Your code snipped on session handling made perfect sense, and really made the session-handling issue finally "click" for me. My question is about timeouts; where is the timeout value set?

Thanks