EasyUI Forum

General Category => EasyUI for jQuery => Topic started by: jikey_zhang on January 31, 2013, 12:44:40 AM



Title: datagrid change page servlet can not get parameter "page"
Post by: jikey_zhang on January 31, 2013, 12:44:40 AM
Hi!
I 'm use the datagrid base on demo . When I change page , the value of the parameter "page"  is null. But I can get the value of the parameter "rows". It is visible with 1.3.2 versions.

JSP Code:

<table id="dg" title="My Users" class="easyui-datagrid" style="width:700px;height:250px"
          data-options="singleSelect:true,collapsible:true,url:'/GetUsersInfo.do' "
          toolbar="#toolbar" pagination="true"          
          rownumbers="true" fitColumns="true" singleSelect="true">
     <thead>
          <tr>
             <th field="firstname" width="50">firstname</th>
             <th field="lastname" width="50">lastname</th>
             <th field="phone" width="50">phone</th>
             <th field="email" width="50">email</th>
          </tr>
       </thead>
 </table>

JAVA Code :

String currentpage = (String)request.getParameter("page");            // 当前页
log.info("currentpag000e==["+currentpage+"]");
LOG:
currentpag000e==[null]

thanks!