<script>
Ext.onReady(function(){
var simple = new Ext.FormPanel({
        labelWidth: 60, // label settings here cascade unless overridden
        url:'save-form.php',
        frame:true,
        title: '登陆',
        bodyStyle:'padding:5px 5px 0',
        width: 250,
        defaults: {width: 230},
        defaultType: 'textfield',        items: [{
                fieldLabel: '用户名',
                name: 'userName',
                allowBlank:false
            },{
                fieldLabel: '密码',
                inputType : 'password',
                name: 'pass'   
            }
        ],        buttons: [
         {
         text : '登陆',
         handler : function(){
         simple.getForm().submit({
         url : 'correct.jsp',
         success : function(simple, action){
         Ext.MessageBox.alert('提示','成功')
         },
         failure: function(simple, action) {
             Ext.Msg.alert('提示', '出错');
            }
         })
         }
         }
        ]
        
        
        
    });    simple.render(document.body);
})以上是extjs的一个表单,由correct.jsp处理。
correct.jsp的代码是 <% out.print("{ success: true, errors: {} }"); %>。
请问为什么不能弹出成功登录的对话框?
谢谢各位的指教