It'd be substantially cleaner, and easier to test, to build a proper data transfer object on the server side. Iterate through *that* on the JSP side.
Joined: Aug 12, 2009
Actually David, i am getting these arrays from a html table. This table have more than one fields with the same property name. So when the form is submit it creates an array of values. These tables are dynamically added to the form, so their number is uncertain.
here are the codes from jsp files.
when the hyperlink is clicked the rows below are added to the form within the <div id="spec"> using ajax.
when you submit, it creates an array values for the above fields and are saved in action form. Now what i want, is to display the values of these field to the user in another jsp.