Well, I've found the problem, It wasn't my code .. It wasn't commons libraries ...
I recently upgraded my Opera Browser version : 7.20.3087. This version of Opera doesn't seem to support use of Formfile (if you leave a file input blank) can anyone confirm that ? I would like to do a bug report but I've never done something like that and I don't know if it's a Struts or an Opera bug . any council ? Franck Lefebure equipe web http://www.orangecaraibe.com mailto:[EMAIL PROTECTED] ----- Original Message ----- From: "Franck Lefebure" <[EMAIL PROTECTED]> To: "k_emilov" <[EMAIL PROTECTED]>; "'Struts Users Mailing List'" <[EMAIL PROTECTED]> Sent: Thursday, October 02, 2003 9:15 AM Subject: Re: file upload and IllegalArgumentException: > Hi, > the enc-type is described in the jsp. > in Struts-config I just have : > > <form-beans> > <form-bean name="serverForm" > type="com.orange.struts.beans.servers.ServerForm"/> > </form-beans> > > <action name="serverForm" path="/doServer" input="/doServer.do" > scope="request" type="com.orange.struts.actions.servers.ServerAction" > parameter="action"> > <forward name="success" path="/index.jsp" redirect="false"/> > </action> > > But since yesterday I've tested the other actions where I use formfile In my > Struts applications > I ve this exception everywhere > > I think I've upgraded a jar somewhere causing this error (I'm actually > looking the commons lib versions) > > Regards > > -- > > Franck Lefebure > equipe web http://www.orangecaraibe.com > mailto:[EMAIL PROTECTED] > ----- Original Message ----- > From: "k_emilov" <[EMAIL PROTECTED]> > To: <[EMAIL PROTECTED]> > Sent: Thursday, October 02, 2003 3:59 AM > Subject: multipart-form/data enc type > > > > Hi , > > > > I think , the problem is that you describe enc type in struts- > > config.xml ... If you describe it in the .jsp > > <html:form action="/doServer" enctype="multipart/form-data" > , it > > will not attempt to set FormFile property with an empty string , > > causing illegal argument exception > > > > There is another workaround, certainly - not to define form property > > of type FormFile in xml, but to take it from requesyt object. > > > > Please , reply what happened > > > > Regards > > > > Konstantin > > > > > --------------------------------------------------------------------- > 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]