After banging my head against the wall for a few hours, I'm hoping someone on
this list has an idea.  I keep getting the following error:

java.lang.IllegalArgumentException: argument type mismatch
        at java.lang.reflect.Method.invoke(Native Method)
        at
org.apache.commons.beanutils.PropertyUtils.setSimpleProperty(PropertyUtils.java:1566)
        at
org.apache.commons.beanutils.PropertyUtils.setNestedProperty(PropertyUtils.java:1460)
        at
org.apache.commons.beanutils.PropertyUtils.setProperty(PropertyUtils.java:1490)
        at org.apache.commons.beanutils.BeanUtils.populate(BeanUtils.java:567)


I have getters/setters for all the elements in my HTML form below - and I never
even get to my action class to debug it.  I've basically copied the UploadForm
example and added asset, description, and mediaType as Strings.  Then removed
filePath (hardcoding for now), and viewFile fields.  

<form method="POST" action="/onpoint/do/saveObject" id="assetForm"
name="assetForm">
   <input type="text" name="asset" size="30" value="">
   <textarea name="description" cols="30" rows="5"></textarea>
   <select size="1" name="mediaType">
      <option value="video">Video</option>
      <option value="text">Text</option>
      <option value="audio">Audio</option>
   <input type="file" name="theFile" value="">
   <button value="Cancel" name="org.apache.struts.taglib.html.CANCEL"
type="submit">Cancel</button>
   <button onClick="" value="Save" id="action" name="action"
type="submit">Save</button>
</form>

__________________________________________________
Do You Yahoo!?
Send FREE video emails in Yahoo! Mail!
http://promo.yahoo.com/videomail/

--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to