File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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
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 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:
subject: struts, html:options, ActionForm
It's not a secret anymore!