In my jsp page I have an javascript function inside which I have a Iterator.On each iteration I need to store data into an object and after the completion of the iteration , the list of objects need to be passed to the sever which is to be saved to DataBase
Share
Your must serialize your objects, send them to action and deserialize them. For example, use json.
1 Create a JSON string from each object. Your can use JSON-js or Jquery jquery-json plugin or thomesing else.
2 Send them to your action
3 In your action create String array parameter. Parameter interceptor will put all your Json_string in that array
4 Create objects from Json strings. Use google-gson or whatever your want