• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

struts, html:options, ActionForm

 
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Ranch Hand
Posts: 38
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thanks Eswar.
got it. It is working.
 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic