can please tell me the code to get the data form the arraylist object into jsp and store the data in the form fields it means this data should be the input to the form fields. I am troubling to write this code in case of updation of one application.
Printable View
can please tell me the code to get the data form the arraylist object into jsp and store the data in the form fields it means this data should be the input to the form fields. I am troubling to write this code in case of updation of one application.
store the data in the request scope in the controller and then forward to jsp.
In the jsp using foreach retrive it.
ya i did that but my question is not that,my question is that after getting the the into the jsp we use jstl foreach tag to retrieve the data from Arraylist object na but this data we need to supply as the input to my form fields
For ex;
how do we set the value to a field in javascript say document.formname.variablename.value.Inthe same way i need to store data from array list obj into form field