Well the idea was to save time, since the upload Servlet already was working.

I think I see the connection now -- it seems that FormFile is where the Commons implementation is lurking, whereas the Servlet works directly with FileItem objects. It is tough to make the connection to Commons FileUpload just by looking at those Struts examples, and I didn't want to reimplement features that DiskFileUpload gave me (such as the memory management/tmp dir). So I was trying to figure out how to use FormFile in my form, but somehow work with DiskFileUpload in myAction class. Probably not worth the trouble (but someone please let me know if you have done this or if there is a good reason to). I'll try handling the input stream myself with FormFile as the example shows. But that Commons FileUpload API is nice to work with.

Thanks,
Erik


Craig McClanahan wrote:

On Sun, 08 Aug 2004 06:37:33 -0400, Erik Weber <[EMAIL PROTECTED]> wrote:



A colleague gave me a nice file upload Servlet to use; it uses the
jakarta commons file upload classes.



Is there a particular reason that you're not using the standard Struts support for file upload (also based on Commons FileUpload but already integrated into Struts)? The "struts-upload.war" (Struts 1.1) or "struts-examples.war" (Struts 1.2) webapp contains examples of using this feature.

Craig

---------------------------------------------------------------------
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]



Reply via email to