返回的 json 数据应该包括制定到 succes 或者是 failure 中 
   // 返回的格式必须是 json 数据的格式。
   response.getWriter().println("{success:true,msg:'ok'}");
   在后台返回的 json 数据中添加 success:true 的说明。

解决方案 »

  1.   

    服务器端代码:....
    try {
         response.getWriter().write("{success:'true'}");//如果为false则前台调用 failure 函数,默认为false;

        } catch (IOException e) {
    e.printStackTrace();
        }
    ....前台代码:success:function(response, options) {
    var response = Ext.util.JSON.decode(response.responseText);
    if(response.success=='true'){
    Ext.Msg.alert("提示信息",'存储成功');
    store.reload();
    grid.reconfigure(store,cm);
    winAdd.close();
    }else{
    Ext.Msg.alert("提示信息",'存储失败!');
    }

    //winAdd.close();
    },
    failure:function(){
    Ext.Msg.alert('提示信息','   操作失败!   ');
    }