DataGrid interactive SSH framework and easyUI problems

A project with the SSH framework, using easyUI DataGrid can not read data, but in action has been in the server print JSON string, seems to be not returned in the JSP page. Does the SSH framework and easyUI interaction but also what allocation?

I use response.getWriter in action (.Write) () to write the string, followed by return SUCCESS
Struts.xml result is to jump directly to my data page
Right to do so!! Ask God for help

Started by Werner at November 16, 2016 - 2:54 PM

Look at the easyUI DataGrid demo

Result does not require action.
Action return null;

Posted by Corrine at November 21, 2016 - 3:02 PM

DataGrid is an asynchronous request, it request is of type void, without the need for return success, you need to configure in Struts:
<action name="" class=""
<result type="json">

In the method of Write write=response.getWriter();
writer.append("You organize data in rows format: Total");
You have a look the official demo or online demo. How this might be wrong.

Posted by Jared at November 27, 2016 - 3:36 PM

You must be in the configuration file to return to the JSON format data

Posted by Jared at December 12, 2016 - 4:25 PM

The response to 2013-10-16 08:54:23 was removed by the administrator

Posted by Alan at December 26, 2016 - 4:27 PM