Hello, this might be quite simple question for you.. I have an Arraylist of String values in Action class, I can set the same in ActionForm or Request Attribute.. But, I'm unable to access the same in JSP using <html:options> tag of STRUTS tag library for a dropdown.
I used like: <html:options collection="states" property=? labelProperty=?/> and getting the error: java.lang.IllegalArgumentException: No name specified at org.apache.commons.beanutils.PropertyUtilsBean.getNestedProperty(PropertyUtilsBean.java:635) at org.apache.commons.beanutils.PropertyUtilsBean.getProperty(PropertyUtilsBean.java:715) at org.apache.commons.beanutils.PropertyUtils.getProperty(PropertyUtils.java:290) at org.apache.struts.taglib.html.OptionsTag.doEndTag(OptionsTag.java:194) I can give property and lableProperty values only if I have list of objects instead of just strings.. now, I am writing Java code in JSP to have my collection.. How can I use <html:options> for just a collection of strings??? Thanks in Advance, Shekar. -- View this message in context: http://www.nabble.com/Arraylist-in-JSP-tf2891006.html#a8076660 Sent from the Struts - Dev mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]