我设一个User类,代码如下:
[code="java"]public class User{
private String name;
private String sex;
private String age;
private String title;
private String expertise;
private String maintask;
....get/set方法
}[/code]
然后是接收值的Action
[code="java"]
public class Test implements Action {
private int flag;
private List store;
private boolean success;
public String execute() throws Exception {
处理
}
....get/set方法
}
[/code]
页面上我想用Ext.ajax.request来向后台传值
[code="java"]
Ext.Ajax.request({
url : 'test.action',
success : function(response) {
},
params : {
flag:1,
store:a
}
})
[/code]
我想知道页面上,store这个参数的值要是怎么样一种格式,才能让后台store正常接收并自动转化呢?