-
兩種分頁的區別
查看全部 -
結構圖
查看全部 -
mvc查看全部
-
load jdbc properties fragment查看全部
-
分頁樣式一查看全部
-
分頁樣式查看全部
-
查詢SQL語句拼接查看全部
-
重要的復習章節,關于List<map<String,Object>>返回數據庫數據的查看全部
-
Pager查看全部
-
<div> <font color="red">${errorMsg}</font> </div>查看全部
-
//校驗pageNum參數輸入合法性 String pageNumStr = request.getParameter("pageNum"); if(pageNumStr != null && StringUtil.isNum(pageNumStr)){ request.setAttribute("errorMsg","參數傳輸錯誤"); request.getRequestDispatcher("sublistStudent.jsp").forward(request,response); return; }查看全部
-
public class StringUtil{ /** *校驗字符串是否是大于0的數字 *@param string *@return */ public static boolean isNum(String string){ Pattern pattern = Pattern.complie("[1-9]{1}\\d"); Matcher matcher = pattern.matcher(string); return matcher.matches(); } }查看全部
-
public class StringUtil{ /** *檢驗字符串是否是大于0的數字 *@param string *@return */ public static boolean isNum(String string){ Pattern pattern=Pattern.compile("[1-9]{1}\\d*"); Matcher matcher=pattern.matcher(string); return matcher.matches(); } }查看全部
-
<br>共${result.totalRecord}條記錄,共${result.totalPage}頁 當前第${result.currentPage}頁 <a href="#" onclick="firstPage();">首頁</a> <a href="#" onclick="nextPage();">下一頁</a> <a href="#" onclick="previousPage();">上一頁</a> <a href="#" onclick="lastPage();">尾頁</a> 查看全部
-
<script type="text/javascript"> //當前顯示第幾頁數據 var currentPage=${result.currentPage}; //一共多少頁數據 var totalPage=${pager.totalPage}; function submitForm(actionUrl){ var formElement=document.getElementById("baseLineForm"); formElement.action=actionUrl; formElement.submit(); } </script>查看全部
舉報
0/150
提交
取消