要实现效果描述:选取某条记录,点击编辑按钮,弹出编辑框,框内显示编辑前记录的信息。代码如下:
ACTION:public String findTypeByCode(){
//String code = productType.getMateTypeCode();
String code = request.getParameter("productType.mateTypeCode");
System.out.println(code+"++");
productType = bProductTypeService.getTypeByCode(code);//能成功取得
if(productType!=null){
writeTextResponse("{success:true}");
}
return SUCCESS;
}
STRUTS2配置<action name="findTypeByCode" class="bProductTypeAction" method="findTypeByCode">
<result name="success" type="json">

<param name="includeProperties">                        
                      productType.*
                 </param>  
</result> 
<interceptor-ref name="defaultStack"></interceptor-ref>
</action>
前端部分EXTJS:_form.load({
url : "ProductType/findTypeByCode.action?productType.mateTypeCode=" + _id,
waitMsg : '正在载入数据...',
success : function(form, action) {
Ext.example.msg("提示", "数据加载成功……", "msg-box-success");
},
failure : function() {
Ext.example.msg("异常", "数据加载失败……", "msg-box-error");
Ext.getCmp("addOrModifyWin").close();
}
});
问题:
点击编辑按钮后,弹出编辑框,但数据加载不出来,卡在这里不动了。数据在后台是已经成功取出的。