File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

struts, html:options, ActionForm

 
Muthu Lakshmi
Greenhorn
Posts: 6
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Friends,
Below given is the code in my jsp.
In the ActionForm i have a property, "selecteditems" which is an ArrayList and a property ,"id" which is a String.

<html:select property="selecteditems" multiple="true" styleClass="listbox">
<html ptions collection="sitems" property="id" labelProperty="name"/>
</html:select>

When i submit the form i'm getting the Exception as,
java.lang.IllegalArgumentException: argument type mismatch

Please help me in this regard.
i want to know how the values are set in the form.

Thanks
Muthulakshmi
 
Ravi Seshu
Ranch Hand
Posts: 38
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
HI,
i have a tutorial http://www.laliluna.de/struts-example-html-elements.html here, may be this canhelp u...

-eswar
 
Muthu Lakshmi
Greenhorn
Posts: 6
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks Eswar.
got it. It is working.
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic