wood burning stoves 2.0*
The moose likes Struts and the fly likes struts, html:options,  ActionForm Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "struts, html:options,  ActionForm" Watch "struts, html:options,  ActionForm" New topic

struts, html:options, ActionForm

Muthu Lakshmi

Joined: Mar 07, 2006
Posts: 6
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"/>

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.

Ravi Seshu
Ranch Hand

Joined: Mar 19, 2005
Posts: 38
i have a tutorial http://www.laliluna.de/struts-example-html-elements.html here, may be this canhelp u...

Muthu Lakshmi

Joined: Mar 07, 2006
Posts: 6
Thanks Eswar.
got it. It is working.
I agree. Here's the link: http://aspose.com/file-tools
subject: struts, html:options, ActionForm
Similar Threads
checkbox iterate
DynaValidator reset options being reset.
Urgent Help Required with Checkboxes!
form values lost in request scope
checkbox - initial value