Skip to Main Content

Java EE (Java Enterprise Edition) General Discussion

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Problem with Html:File in struts

843838May 24 2006 — edited Sep 5 2006
I had a problem in using <html:file> in struts
actually i did like this
in jsp
<html:form action="/adminutils/createCalendarEventsAction" enctype="multipart/form-data">
----------------------------------------
-----------------------------
<html:file property="file"/>
----------------
</form>

in action form
FormFile file=null;
setters
getters

i get this exception

exception
javax.servlet.ServletException: BeanUtils.populate
at org.apache.struts.util.RequestUtils.populate(RequestUtils.java:980)
------------------------------------------------------------------------------
root cause
java.lang.IllegalArgumentException: argument type mismatch
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Oct 3 2006
Added on May 24 2006
1 comment
133 views