File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
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 Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "struts, html:options,  ActionForm" Watch "struts, html:options,  ActionForm" New topic
Author

struts, html:options, ActionForm

Muthu Lakshmi
Greenhorn

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"/>
</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

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

-eswar
Muthu Lakshmi
Greenhorn

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
Urgent Help Required with Checkboxes!
form values lost in request scope
DynaValidator reset options being reset.
checkbox - initial value
checkbox iterate