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]

Reply via email to