have u got the encrpt line in your jsp form ?? or what ever it is

On Friday 28 February 2003 3:04 pm, Susan Bradeen wrote:
> I just got through implementing an upload function into my application,
> which is working perfectly, and now I am trying to incorporate the same
> upload  functionality into an existing "add" action in my application.
> (Struts 1.1b3) My new upload action and this add action use different
> ActionForms. I am wondering if combining an upload file field with a jsp
> form containing a dozen other fields is a problem?
>
> In my "add" ActionForm I added:
>
> private FormFile linkFile = null;
>
> public FormFile getLinkFile() {
>   return linkFile;}
> public void setLinkFile(FormFile linkFile) {
>   this.linkFile = linkFile;}
>
> In the "add" JSP I added:
>
>  <html:file property="linkFile" />
>
> My "save" action will handle the file, but submitting the form results in
> the following error:
>
> E SRVE0026E: [Servlet Error]-[BeanUtils.populate]:
>   java.lang.IllegalArgumentException: argument type mismatch
> at java.lang.reflect.Method.invoke(Native Method)
> at
> org.apache.commons.beanutils.PropertyUtils.setSimpleProperty(PropertyUtils.
>java:1789) at
> org.apache.commons.beanutils.PropertyUtils.setNestedProperty(PropertyUtils.
>java:1684) at
> org.apache.commons.beanutils.PropertyUtils.setProperty(PropertyUtils.java:1
>713) at
> org.apache.commons.beanutils.BeanUtils.setProperty(BeanUtils.java:924) at
> org.apache.commons.beanutils.BeanUtils.populate(BeanUtils.java:729) at
> org.apache.struts.util.RequestUtils.populate(RequestUtils.java:1097) at
> org.apache.struts.action.RequestProcessor.processPopulate(RequestProcessor.
>java:798) at
> org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:254
>) at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1422)
> at org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:523) at
> javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
> .
> .
> .
> What "type mismatch"? What could possibly be causing this? I guess this
> wouldn't be so baffling if my first upload implementation didn't go so
> smoothly.
>
> Any ideas are appreciated.
>
> Susan Bradeen
>
>
> ---------------------------------------------------------------------
> 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]

Reply via email to