日期:2014-05-18 浏览次数:20660 次
function submit() {
frm = Ext.getCmp('frm');
// if (!frm.getForm().isValid()) return;
frm.getForm().submit({
method: 'post',
waitTitle: '提示',
url: 'ext',
success: function(form, action) {
alert("123");
Ext.Msg.alert('提示', '保存成功');
},
failure: function(form, action) {
Ext.Msg.alert('提示','保存失败');
}
});
}
public class ExtFormAction extends ActionSupport {
@Override
public String execute() throws Exception {
HttpServletResponse response = ServletActionContext.getResponse();
HttpServletRequest request = ServletActionContext.getRequest();
System.out.println("data "+request.getParameter("phf"));
return SUCCESS;
}
}