日期:2014-05-17 浏览次数:20833 次
function getReq(num){
$.ajax({
url: "<%=request.getContextPath() %>/getAccountBlogic.do",
data: {account: num},
type: "POST",
dataType: "Object",
async: false,
cache: false,
beforeSend: function() {
},
success: function(data) {
alert("查看数据1");
alert(data);
},
error:function(xhr){
alert(xhr.status);
alert(xhr.readyStatus());
},
complete: function() {
}
});
}
@Override
public BLogicResult execute(Object params) {
// TODO Auto-generated method stub
BLogicResult result = new BLogicResult();
TcpjentryInput tcinput=(TcpjentryInput) params;
System.out.println(tcinput.getAccount());
tcinput.setAccountName("234");
tcinput.setAvailableBalance(new BigDecimal(234555555));
result.setResultObject(tcinput);
result.setResultString("");
return result;
}
<!-- 获取账号信息start -->
<action path="/getAccountBlogic">
<blogic-params bean-name="poc.dto.TcpjentryInput">
<set-property blogic-property="account" property="account"
source="form" />
</blogic-params>
<blogic-result>
<set-property blogic-property="accountName" property="accountName"
dest="request" />
<set-property blogic-property="availableBalance" property="availableBalance"
dest="request" />
</blogic-result>
</action>
<!-- 获取账号信息end -->