DataTructure for DataTable服务器端处理 [英] DataStructure for the DataTable server side processing

查看:160
本文介绍了DataTructure for DataTable服务器端处理的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用Spring MVC的 DataTable 1.10 。当使用服务器端处理时,它会向控制器发送一组参数。它是一个两个数组,但列是这样的字符串:

I am using DataTables 1.10 with Spring MVC. When using server side processing it send set of parameters to the controller. It is set of two dimention array but the column being the string like this:

columns[0][data]=
columns[0][name]=
columns[0][orderable]=false
columns[0][search][regex]=false
columns[0][search][value]=
columns[0][searchable]=true
columns[1][data]=
columns[1][name]=
columns[1][orderable]=false
columns[1][search][regex]=false
columns[1][search][value]=
columns[1][searchable]=true
order[0][column]=4
order[0][dir]=desc
order[1][column]=4
order[1][dir]=desc
search[regex]=false
search[value]=

我用Java代表DTO吗?任何建议?

How can I represent this as DTO in Java? Any suggestion?

推荐答案

您可以将发送到服务器的数据(特别是搜索部分是3dimension)更改为2d阵列。接下来,您可以轻松使用此链接创建您的DTO。

you can change the data (especially search part which is 3dimension) that you send to the server and make them all as a 2d array. Next you can easily use this link to create your DTO.

这篇关于DataTructure for DataTable服务器端处理的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆