Ext.Ajax.request failure() does not work?
<p>This is my implementation class.</p>

<pre><code>    @Override
    public void loginPage(String uid, String Passwd) throws Exception {     
        Connection connection = persister.getConnection();

        Statement statement = connection.createStatement();

        String sql = "select mailid,password from account where mailid = '"+ uid + "'";

        ResultSet rs = statement.executeQuery(sql);
        while (rs.next()) {
            String User = rs.getString("mailid");
            String pass = rs.getString("password");

            if (User.equals(uid)&amp;&amp;pass.equals(Passwd)) {
                System.out.println("Login Successfull");

                } 
            else {
                    System.out.println("Login Unsuccessful");

                }
            }

       }

    }
</code></pre>

<p>And the following is my java ExtJS part</p>

<pre><code>{  
                 xtype:'button',
                 x:115,
                 y:10,
                 text:'Login',
                 anchor : '15%',
                 scale:'medium',
                 handler:function()
                 {
                    var userid=Ext.getCmp('Usertxt');
                    var password=Ext.getCmp('Passwordtxt');
                   Ext.Ajax.request({
                   url:'Form/login_account',
                   method:'POST',
                   params:{userid:userid.getValue(), password:password.getValue()},

                    failure:function(response, opts){
                           //Alert the user about communication error
                        response = Ext.decode(response.responseText);
                                                   Ext.MessageBox.alert('Login Unsuccessfully',response.message);
                                                 },
                    success:function(response, opts) {
                           //Received response from the server
                                       response = Ext.decode(response.responseText);
                                       Ext.MessageBox.alert('Login Successfully', response.message);

                                     }

                   });
                 }
                            },
</code></pre>

<p>Please help me on this as I am new to extjs and java too.</p>
