title: queryParams bootstrap table
body: <p>I'm creating my table inside a div like this:</p>
  
  <pre><code>var tabla = $('&lt;table id="tablaConteo2"&gt;&lt;/table&gt;');
  var thead = $('&lt;thead&gt;&lt;/thead&gt;');
  var enc = $('&lt;tr&gt; &lt;th&gt;&lt;/th&gt; &lt;th&gt;&lt;/th&gt; &lt;th&gt;&lt;/th&gt; &lt;th&gt;&lt;/th&gt; &lt;th&gt;&lt;/th&gt; &lt;/tr&gt;');
  thead.appendTo(tabla);
  enc.appendTo(thead);
  tabla.appendTo('#tablaDatosToma2');
  var $tabla = $('#tablaConteo2');
  </code></pre>
  
  <p>and then I'm using <a href="http://bootstrap-table.wenzhixin.net.cn/" rel="nofollow">this library</a>
  to initialize the table like this: </p>
  
  <pre><code>$tabla.bootstrapTable({
                      height: 200,
                      url: 'BuscarCodigo',
                      method: 'post',
                      queryParams: function(p){
                      return{
                          codigoProducto : $('#codigoToma2').val(),
                          bodegaID: $('#bodega').val()
                      };
  
                  },
                  pagination: true,
                  pageSize: 50,
                  pageList: [10, 25, 50, 100, 200],
                  showRefresh: true,
              columns: [
              {
                  field: 'codigoProducto',
                  title: 'C\u00F3digo'
              }, 
              {
                  field: 'cantidad',
                  title: 'Cant. Actual',
                  width: '200px'
              },
              {
                  field: 'nuevaCantidad',
                  title: 'Cantidad'
              },
              {
                  field: 'bodega',
                  title: 'Bodega'
              },
              {
                  field: 'estanteria',
                  title: 'Estanter\u00EDa'
              },
              {
                  field: 'seccion',
                  title: 'Secci\u00F3n'
              },
              {
                  field: 'estanteriaID',
                  title: 'Estanter\u00EDa'
              },
              {
                  field: 'seccionID',
                  title: 'Secci\u00F3n'
              }
              ]
              });
  </code></pre>
  
  <p>On my servlet I'm getting the parameters as I usually do, like this: </p>
  
  <pre><code>request.getSession().setAttribute("codigoProducto", request.getParameter("codigoProducto"));
  request.getSession().setAttribute("bodegaID", request.getParameter("bodegaID"));
  </code></pre>
  
  <p>The servlet is being executed, but when I try to use the parameters they are null, can anyone help to find out what I'm doing wrong.</p>