You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Franck Lefebure <fl...@orangecaraibe.com> on 2003/10/02 15:35:58 UTC

Re: file upload and IllegalArgumentException: FOUND !

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:flefebure2@orangecaraibe.com
----- Original Message -----
From: "Franck Lefebure" <fl...@orangecaraibe.com>
To: "k_emilov" <km...@top.bg>; "'Struts Users Mailing List'"
<st...@jakarta.apache.org>
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:flefebure2@orangecaraibe.com
> ----- Original Message -----
> From: "k_emilov" <km...@top.bg>
> To: <fl...@orangecaraibe.com>
> 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: struts-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: struts-user-help@jakarta.apache.org
>


---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org