title: How to get username from J_security_check in Ext_js?
body: <p>Actually I am using extjs framework and want to get username for further use.Can anyone help me solve this problem.
  My extjs code is this....</p>
  
  <pre><code>var username= new Ext.form.field.Text({
      width:300,
      margin:'0 0 10 0',
      name:'j_username',
      fieldLabel:'Email',
      allowBlank:false,
      minLength:6,
      maxLength:100
  });
  
  var password= new Ext.form.field.Text({
      width:300,
      margin:'0 0 10 0',
      name:'j_password',
      minLength:6,
      maxLength:20,
      inputType:'password',
      allowBlank:false,
      fieldLabel:'Password'
  });
  
  var signin = new Ext.form.Panel({
      width:350,
      renderTo:'signinform',
      url:'j_security_check',
      method:'POST',
      title:'Sign In',
      bodyPadding:20,
      layout:'anchor',
      items:[username,password,
      {
          xtype:'checkboxfield',
          fieldName:'accept',
          margin:'0 0 10 0',
          boxLabel:'I Accept &lt;a class="cont" id="tousignin" href="#"&gt;&lt;u&gt;Terms Of Use&lt;/u&gt;&lt;/a&gt;',
          hideLabel:true,
          checked:true,
          readOnly:true,
          labelAlign:'left'
      }],
      standardSubmit:true,
      buttons:[{
          text:'Reset Your Password',
          handler:function(){return false;
              window.location.href=forgoturl;
          }
      },{
          text:'Sign In',
          handler:function(){                 
              signin.submit();
          }
      }]
  });
  
  if(window.location.href.indexOf('j_security_check')&gt;-1){
      Ext.MessageBox.alert('Error','Invalid e-mail or password specified.');
  }
  </code></pre>
  
  <p>and this code is imported to login.jsp page like this:</p>
  
  <p></p>
  
  <p>so how can i get username from this?</p>