terms explained -------------------------------- ActionForm="ReportListForm" reportChosen = Report class that stores information groups = ArrayList property of Group types, property of reportChosen parms = ArrayList property of Parm types, property of groups dataType = lets me know which type of html element to created for user input multipleSelect = identifier for a select list with multiple=true choicesList = ArrayList of choices (type = LabelValueBeans to populate lists) ------------------------------------
Thanks for your assistance. I am stumped!
New Developer<br />Happy to learn what I don't know<br />Happy to share what I do<br />
Since you have a loop within a loop, merely specifying indexed="true" with the <html:select> isn't going to work. With a more complex situation like this you either have to use the <nested> tags or build the indexed property name yourself.
If you use the Struts-el version of the tags, the following should work:
In addition to the above, you must also have indexed getters and setters for your properties. Also, if ReportListForm is in request scope, you will need to read this link carefully and follow its instructions for giving your lists "lazy initialization" behavior.
Hello! i would like to do the exact same thing but i cannot understand the solution!i am new in struts and i know nothing about the Struts-el version of the tags.is <c:set > one of them?how can i achieve the same result with <logic:iterate>?i would like to create a drop down list.i have a List which is filled with values from the database, but now,i dont know how to create the <html:select> with the values of those objects... could anyone help?? is there any tutorial or site that you know with relevant example code? any help appreciated!!
Hi, I am trying to save values of a select in a form. The select is inside 2 nested logic iterate tags similar to the solution provided below. I tried implementing it the same way but I get the following exception:
Invalid indexed property 'fileNumberBeans[indx.intValue()]' on bean class 'class com.test.OfaForm' Invalid index value 'indx.intValue()''