Google分页功能的jsp标签实现

 下面是jsp代码<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%> <%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%> <%@ page import="com.yourcompany.struts.action.Student" %> <%@ taglib uri="http://jsptags.com/tags/navigation/pager" prefix="pg" %> <% String path = request.getContextPath(); String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/"; System.out.println("&&&path&"+path); System.out.println("&&&basepath&"+basePath); %> " url="/FenyeStruts/hello.do" index="center" maxPageItems = "4" maxIndexPages="4" isOffset = "<%=false%>" export = "pageOffset,currentPageNumber=pageNumber" scope = "request">

<% if (pageNumber == currentPageNumber) { %> <% } else { %> <% } %>

<%=pageNumber%>

<%= pageNumber %>
<% List slist=(List)request.getAttribute("listPage"); if(slist!=null && slist.size()>0){ for(int i=0;i <% } } %>
student no student name student score
<%=stuno %> <%=stuname %> <%=stuscore %>
 

 

你可能感兴趣的:(java研究,jsp,google,string,path,border,import)