title: Extjs 4.2: How to send parameters properly in a Ext.Ajax.Request POST
body: <p>I have to do a POST from my ExtJs script in order to delete something from my DB:</p>
  <pre><code>Ext.Ajax.request({
      url: 'deleteRole.html',
      method: 'POST',          
      headers: {'Content-Type': 'text/html'},
      waitTitle: 'Connecting',
      waitMsg: 'Sending data...',                                     
      params: {
          &quot;rolename&quot; : rolename
      },
      scope:this,
      success: received,                                    
      failure: function(){console.log('failure');}
  });
  </code></pre>
  <p>when the post is sent i can see in the firebug the rolename in font but not as a param. I would like to show you another post (made with spring:form) relative to the user registration. If i inspect the post i can see the following:</p>
  <p><a href="https://i.stack.imgur.com/t4ZcJ.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/t4ZcJ.jpg" alt="image" /></a><br />
  <sub>(source: <a href="http://s2.subirimagenes.com/otros/previo/thump_8498731post.jpg" rel="nofollow noreferrer">subirimagenes.com</a>)</sub></p>
  <p>And i can get the parameters in my controller using @RequestParam.</p>
  <p>But in the post that i have problems i can't see the parameters part, i can only see the Font(Fuente) part:</p>
  <p><a href="https://i.stack.imgur.com/glmtP.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/glmtP.jpg" alt="image2" /></a><br />
  <sub>(source: <a href="http://s2.subirimagenes.com/otros/previo/thump_8498737delete.jpg" rel="nofollow noreferrer">subirimagenes.com</a>)</sub></p>
  <p>As a consequence, my spring controller does not detect any parameter. Is it something wrong in my POST?</p>
  <p>Thank you</p>