Hi,
i am facing the problem when i used to upload the files. when i am passing
the parameter to the form (enctype="multipart/form-data", it gives the error
like
500 Internal Server Error
/mediaman/saveIconFileUpLoadAction.do:
javax.servlet.ServletException: BeanUtils.populate
java.lang.IllegalArgumentException: argument type mismatch
at java.lang.reflect.Method.invoke(Native Method)
at
org.apache.struts.util.PropertyUtils.setSimpleProperty(PropertyUtils.java:82
4)
at
org.apache.struts.util.PropertyUtils.setNestedProperty(PropertyUtils.java:75
5)
at org.apache.struts.util.PropertyUtils.setProperty(PropertyUtils.java:781)
at org.apache.struts.util.BeanUtils.populate(BeanUtils.java:563)
at org.apache.struts.util.RequestUtils.populate(RequestUtils.java:333)
at
org.apache.struts.action.ActionServlet.processPopulate(ActionServlet.java:18
05)
at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1416)
at org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:481)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:772)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:865)
at allaire.jrun.servlet.JRunSE.service(JRunSE.java:1013)
at allaire.jrun.servlet.JRunSE.runServlet(JRunSE.java:925)
at
allaire.jrun.servlet.JRunRequestDispatcher.forward(JRunRequestDispatcher.jav
a:88)
at allaire.jrun.servlet.JRunSE.service(JRunSE.java:1131)
at allaire.jrun.servlet.JvmContext.dispatch(JvmContext.java:330)
at allaire.jrun.jrpp.ProxyEndpoint.run(ProxyEndpoint.java:354)
at allaire.jrun.ThreadPool.run(ThreadPool.java:267)
at allaire.jrun.WorkerThread.run(WorkerThread.java:74)
where as i hava used the populate method properly.
can anybody help me in this case.
cheers
Byomakesh