ajax 提交json struts怎么获取到json

$.ajax({
type:"post",
url:"saveCourseType",
dataType:"json",
data:"rows",
success:function(rows){
}
});

        后台怎么写啊

这是我写的前台:
$.post('user_delete', {userID : row.userID},
function(result) {
if (result.success) {
$.messager.alert('删除成功','您已成功删除该用户!','info');
$('#id_dg').datagrid('reload');
} else {
$.messager.show({ title : 'Error',msg : result.errorMsg });
}
}, 'json');

                    }
                });

后台Action:
// 封装UserInfo数据
private UserInfo userInfo = new UserInfo();

public void setUserInfo(UserInfo userInfo) {
    this.userInfo = userInfo;
}

public UserInfo getUserInfo() {
    return userInfo;
}

// DataGrid默认接收的是json对象,而不是json字符串
private JSONObject resJsonObj;

public JSONObject getResJsonObj() {
    return resJsonObj;
}

public void setResJsonObj(JSONObject resJsonObj) {
    this.resJsonObj = resJsonObj;
}


    //  用户删除 
public String delete(){

    resJsonObj=userService.userDelete(userInfo);
    return "jsonObj_success_delete";
}

struts.xml:

<package name="UserPackage" extends="struts-default,json-default" namespace="/">
    <action name="user_*" class="cn.xsyykj.Action.UserAction" method="{1}">
        <result name="jsonObj_success_{1}" type="json">
            <param name="root">resJsonObj</param>
        </result>
    </action>

--------------------------说明
1)resJsonObj指,返回到前台界面的JSON对象,它要有setter/getter,在Action内部定义。

你的参数data:"rows",写错了,你传的是字符串"rows"