I have an JSP, servlet application where I am using a java dashboard to display the grid data. For a specific project, I want to use the editable slickgrid. I have successfully integrated the grids to display data. But now, I need to send/post the data back to the servlet for processing. I referred to the question here Saving changes in SlickGrid and tried using the solution. But the script doesn't send any data to the servlet. At the servlet, when I collect the parameters passed and print them, I get:
In Test Data Input event.
1)event : TestDataInput
2)data :
If I modify the script line:
$("input[name='data']").val($.JSON.stringify(grid.getData()));
to
$("input[name='data']").val(grid.getData());
a lot of [object, object] variables are posted and collected in the servlet.
Can you tell me where am I making a mistake? Thanks all in advance.