My form bean object has an arraylist (or) simply list property like
class MyForm extends ActionForm {
private List name;
private
String department;
}
We can directly set the department property in javascript like
document.forms[0].department="production";
But name property contains a bunch of objects(since it is a ArrayList (or) List) of type EmployeeName class which has the property myName of String type.
class EmployeeName {
String myName;
}
I am using indexed properties to iterate through the name List and display the myName property in my
JSP page.
For one particular scenario I need to set the myName property via Javascript.