This week's book giveaway is in the OCPJP forum. We're giving away four copies of OCA/OCP Java SE 7 Programmer I & II Study Guide and have Kathy Sierra & Bert Bates on-line! See this thread for details.
here my list is getting fetched successfully and values are getting displayed in the in text field,
But when i'm editing the values in the textboxes , and on submitting the form , the list values are
not submited in the action
than i did a change in ActionForm for the getter method of student , which is
by doing these above changes i'm able to populate the studentId's and student names in the text field , as well as if i change the names or the id's in the text field
i'm able to submit it successfully and those changed field i'm able to see in the action .
But here is a question, here in the action form in the getter of student i have hardcoded the number 7 which is the list size when i set the list in setter.
but if i don't want to hard code the value , what if my list is dynamic, this list can be 7 or more or even less , than what to do ??
please give some suggestion
Joined: Jun 17, 2009
I'M EXTREMELY SORRY FOR ASKING SUCH A STUPID QUESTION, I FIGURED IT OUT, I CHANGED MY GETTER METHOD OF student in ActionForm , which is as follows