Santanu, I'm currently working on this... and I think I found something in clnt-struts... some tests and I'll post what I have...
Cheers, Aleks -----Ursprüngliche Nachricht----- Von: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Gesendet: Montag, 9. August 2004 16:04 An: [EMAIL PROTECTED] Betreff: [Keelgroup] Re: AW: [Keelgroup] Upload... Aleks - You are right about the <form> tag. It should go in the struts-config.xml file. Why it's in the jsp page I have no idea. The fileservices module is based on the Struts file upload api. It uses the Formfile object to do all the stuff. The difference in the way the byte[] data is obtained between app-clobblob and app-fileservices may be due to different versions. Unfortunately I cannot access the Keel CVS from work. I will definitely look into this tonight from home. Regards. Santanu Vidakovic Aleksandar <[EMAIL PROTECTED]> wrote on 08/09/2004, 11:31:37 AM: > Is anyone using app-fileservices? > > -----Ursprüngliche Nachricht----- > Von: Aleksandar Vidakovic [mailto:[EMAIL PROTECTED] > Gesendet: Sonntag, 8. August 2004 12:12 > An: [EMAIL PROTECTED] > Betreff: [Keelgroup] Upload... > > > Hi all, > > I have problems uploading files. I don't use app-fileservices, but > implemented my own upload/download models (needed some additional > features). So, let's suppose that I didn't make a mistake copying the > existing models ;-)... my problem is the following line > > byte[] data = ((BinaryWrapper) req.getParameter("file1")).get(); > > There is no content (null) in parameter "file1"; every other parameter > is passed to the model and I double checked the name of the file input > tag... on the jsp side everything seems to be OK. But then I saw those > strange tags in app-fileservices and in app-clobblob: > > > > Why is this in the jsp file? Isn't it part of struts-config's > DynaActionForm definition? Is it necessary to place it there? I tried > this, but get a strange conversion error from BeanUtils (something like: > couldn't convert java.lang.String to org.apache.struts.upload.FormFile). > > Finally, could someone explain to me why there is a difference between > app-fileservices and app-clobblob in accessing the file parameter in the > request object: > > > in app-fileservices: > > byte[] data = ((BinaryWrapper) req.getParameter("file1")).get(); > > > in app-clobblob: > > byte[] data = (byte[]) req.getParameter("file1"); > > > TIA, > > Aleks > > > http://keelframework.org/documentation > Keelgroup mailing list > [EMAIL PROTECTED] > http://lists.keelframework.com/listinfo.cgi/keelgroup-keelframework.com > http://keelframework.org/documentation > Keelgroup mailing list > [EMAIL PROTECTED] > http://lists.keelframework.com/listinfo.cgi/keelgroup-keelframework.com http://keelframework.org/documentation Keelgroup mailing list [EMAIL PROTECTED] http://lists.keelframework.com/listinfo.cgi/keelgroup-keelframework.com http://keelframework.org/documentation Keelgroup mailing list [EMAIL PROTECTED] http://lists.keelframework.com/listinfo.cgi/keelgroup-keelframework.com