How to retrieve gson data in jsp page?
How to retrieve gson data in jsp page?
SAMMUX
Posts: 2Questions: 1Answers: 0
i m doing inline editing using data table editor, can any one tell me how to reterive gson data such as
data[4349][date]:2017-03-09 ? an prompt reply would be highly appreciated.
Thanks.
This discussion has been closed.
Answers
This is the data you want to send to the server? To modify the data sent to the server, use
ajax.data
. There is an example in the documentation which shows how to send it as JSON. If you want to send it in some other format, you can use your serialiser in that function.Allan
Allan, following is coming in header parameter when inline edidting is done:
action: edit
data[4349][date]:2017-03-09
My question is how to retrieve that in some page.jsp, if i use request.getParameter("data") it has nothing. however request.getParameter("action") has edit as value.
I don't know I'm afraid as I don't know any JSP. You'd need to ask in a JSP forum or StackOverflow how to access such parameters. Perhaps `request.getParameter("data[4349][date]") - or perhaps some kind of automatic nesting - I don't know if JSP does that or not.
Allan