日期:2014-05-17 浏览次数:20599 次
<package name="/product/json" extends="json-noprotected-default">
<action name="*" method="{1}" class="com.test.fund.web.action.product.FundProductAction">
<result type="json">
<param name="ignoreHierarchy">true</param>
<param name="excludeNullProperties">true</param>
<param name="root">msg</param>
</result>
</action>
</package>
private String msg ;
public String test(){
msg="成功";
return SUCCESS;
}
jQuery("#mainForm").ajaxSubmit({
url:'/product/json/doUpdateFundProduct.action',
dataType:'json',
type:'POST',
success:function(json){
alert(json);
},
error:function(){
alert("error");
}
});