Re: File upload using html:file tag fails..java.lang.IllegalArgumentException:
hope you have given your form declaration as html:form action=/uploadFile method=post enctype=multipart/form-data kommineni Anita [EMAIL PROTECTED] 写道: David, U are right...But If I change that to post I get java.lang.NoClassDefFoundError:org/apache/commons/io/output/DeferredFileOutputStream , though I have the necessary jar's in place. Thanks, /Anita --- David Evans wrote: Just a guess, as i don't use the struts html tags, but shouldn't that method=get be method=post? you can't get a multi part form. dave - 雅虎免费邮箱-3.5G容量,20M附件
re: File upload using html:file tag fails..java.lang.IllegalArgumentException:
Yeah it worked by just using the common_fileupload.jar and also by removing the commons 1.1 from all my other libs in the Websphere Appserver lib ext aswell. Thanks, Anita --- Kyle Wu [EMAIL PROTECTED] wrote: as far as I know, file upload issue just require commons-fileupload.jar which is already included in the struts-blank demo, why don't you just do as what is demostrated in the file upload demo? just a guess... kommineni Anita [EMAIL PROTECTED] д��� David, U are right...But If I change that to post I get java.lang.NoClassDefFoundError:org/apache/commons/io/output/DeferredFileOutputStream, though I have the necessary jar's in place. Thanks, /Anita --- David Evans wrote: Just a guess, as i don't use the struts html tags, but shouldn't that method=get be method=post? you can't get a multi part form. dave - �Ż��������-3.5G�����20M���� __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
re: File upload using html:file tag fails.. java.lang.IllegalArgumentException:
mayby you forgot to set the enctype attribute in the html:form ... tag, it should be html:form ... ... enctype=multipart/form-data kommineni Anita [EMAIL PROTECTED] Hi, Trying to upload a file using property=primaryFile. In my Action form I have the property defined as org.apache.struts.upload.FormFile and have appropriate getter and setter. It gives me this exception E SRVE0026E: [Servlet Error]-[BeanUtils.populate]: java.lang.IllegalArgumentException: Cannot invoke com.strykercorp.e3s.stellent.forms.CheckInNewForm.setPrimaryFile - argument type mismatch. Appreciate any thoughts.. Thanks --- Jakub Milkiewicz wrote: As far as i remember d means digit, but not digits ... try to add + or *. 2006/5/10, temp temp : Note: forwarded message attached. -- Blab-away for as little as 1锟�/min. Make PC-to-Phone Callsusing Yahoo! Messenger with Voice. -- Wiadomo锟斤拷 oryginalna -- From: temp temp To: [EMAIL PROTECTED] Date: Wed, 10 May 2006 09:08:49 -0700 (PDT) Subject: [java.util.regex ]using Regular Expressions I am having problems with Regular Expressions usage. I want to ensure that the user enters only digits and no other characters. For this I am using the code below. I create a Pattern Object to which I pass a regular expression and when I call matches method I always get false. What am I doing wrong? Pattern p=Pattern.compile(\\d); System.out.println(p.matcher(456).matches()); Thanks Regards -- How low will we go? Check out Yahoo! Messenger's low PC-to-Phone call rates. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - 雅虎免费邮箱-3.5G容量,20M附件 雅虎助手-搜索、杀毒、防骚扰
Re: re�� File upload using html:file tag fails..java.lang.IllegalArgumentException:
Kyle, Thanks for the reply. But I ahve it declared. I have that defined in my html as follows html:form method=get action=/checkInNew enctype=multipart/form-data Appreciate any further insights.. --- Kyle Wu [EMAIL PROTECTED] wrote: mayby you forgot to set the enctype attribute in the html:form ... tag, it should be html:form ... ... enctype=multipart/form-data kommineni Anita [EMAIL PROTECTED] Hi, Trying to upload a file using property=primaryFile. In my Action form I have the property defined as org.apache.struts.upload.FormFile and have appropriate getter and setter. It gives me this exception E SRVE0026E: [Servlet Error]-[BeanUtils.populate]: java.lang.IllegalArgumentException: Cannot invoke com.strykercorp.e3s.stellent.forms.CheckInNewForm.setPrimaryFile - argument type mismatch. Appreciate any thoughts.. Thanks --- Jakub Milkiewicz wrote: As far as i remember d means digit, but not digits ... try to add + or *. 2006/5/10, temp temp : Note: forwarded message attached. -- Blab-away for as little as 1ï¿/min. Make PC-to-Phone Callsusing Yahoo! Messenger with Voice. -- Wiadomo�� oryginalna -- From: temp temp To: [EMAIL PROTECTED] Date: Wed, 10 May 2006 09:08:49 -0700 (PDT) Subject: [java.util.regex ]using Regular Expressions I am having problems with Regular Expressions usage. I want to ensure that the user enters only digits and no other characters. For this I am using the code below. I create a Pattern Object to which I pass a regular expression and when I call matches method I always get false. What am I doing wrong? Pattern p=Pattern.compile(\\d); System.out.println(p.matcher(456).matches()); Thanks Regards -- How low will we go? Check out Yahoo! Messenger's low PC-to-Phone call rates. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - �Ż��������-3.5G�����20M���� �Ż�����-����ɱ������ɧ�� __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
re: File upload using html:file tag fails..java.lang.IllegalArgumentException:
as far as I know, file upload issue just require commons-fileupload.jar which is already included in the struts-blank demo, why don't you just do as what is demostrated in the file upload demo? just a guess... kommineni Anita [EMAIL PROTECTED] 写道: David, U are right...But If I change that to post I get java.lang.NoClassDefFoundError:org/apache/commons/io/output/DeferredFileOutputStream, though I have the necessary jar's in place. Thanks, /Anita --- David Evans wrote: Just a guess, as i don't use the struts html tags, but shouldn't that method=get be method=post? you can't get a multi part form. dave - 雅虎免费邮箱-3.5G容量,20M附件