Repost: File upload but outside session

2004-10-04 Thread Ivan Vasquez
Our users need to upload a file as part of a form submission. We use
struts-upload FormFile, but the application breaks when run in a tomcat
cluster. 

Since the form is session-scoped, FormFile has to be serialized for
sessions to be replicated but we get a NotSerializableException for 

org.apache.commons.fileupload.DeferredFileOutputStream

Any ideas are welcome. 
Thanks in advance,
Ivan

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



Re: File upload but outside session

2004-10-01 Thread Johannes Wolfgang Woger
I experienced the same with commons fileupload. Parsing the request
returns an empty list of fileitems
Wolfgang
Ivan Vasquez wrote:
Hi,
Our users need to upload a file as part of a form submission. First we
used struts-upload FormFile as one of the fields of the ActionForm. It
worked well until we tested it in a Tomcat cluster. 

Since the form is session-scoped, the FormFile has to be serialized for
sessions to be replicated. However we get a NotSerializableException for
org.apache.commons.fileupload.DeferredFileOutputStream
So now I'm trying to keep the file upload outside the session. I tried
using commons fileupload from my Action, but when I parse the
HttpServletRequest I get no items!
Any ideas?
Thank you.
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
 


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


File upload but outside session

2004-10-01 Thread Ivan Vasquez
Hi,

Our users need to upload a file as part of a form submission. First we
used struts-upload FormFile as one of the fields of the ActionForm. It
worked well until we tested it in a Tomcat cluster. 

Since the form is session-scoped, the FormFile has to be serialized for
sessions to be replicated. However we get a NotSerializableException for


org.apache.commons.fileupload.DeferredFileOutputStream

So now I'm trying to keep the file upload outside the session. I tried
using commons fileupload from my Action, but when I parse the
HttpServletRequest I get no items!

Any ideas?
Thank you.

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