`

用java,jsp和javascript写的分页及有下拉列表分页的功能

    博客分类:
  • java
阅读更多
页面dubietyPosition.jsp:

<%@ page language="java" contentType="text/html; charset=GBK" %>
<%@ page import="...weihu.vo.DubietyPosition" %>
<%@ page import="...weihu.dao.DubietyPositionDao" %>
<%@ page import="...weihu.util.Page" %>
<%@ page import="java.util.List" %>
<%@ page import="java.util.Iterator" %>
<%@ page import="....util.Log" %>

<%
//从...weihu.DubietyPositionDao获得数据库的相关操作
DubietyPositionDao dpDao=null;
//显示的内容
List listDP=null;
//用于做分页
Page page1=null;
[b]try{
   page1=new Page();
   dpDao=page1.getDao();
   String currentPageNo=request.getParameter("currentPageNo");
   if(currentPageNo!=null){
       page1.refresh(Integer.parseInt(currentPageNo));
   }   
   String pageMethod=request.getParameter("pageMethod");
   if(pageMethod!=null){
       if(pageMethod.equals("first")){
          page1.first();
       }else if(pageMethod.equals("last")){
          page1.last();
       }
   }
   listDP=page1.getCurrentPage(page1.getCurrentPageNo(),page1.getPageSize());

}catch(Exception e){
   Log.error(this, "dubietyPosition.jsp", e.getMessage());
}[/b]
//记录编号
int i=(page1.getCurrentPageNo()-1)*page1.getPageSize()+1;

%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>

<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">

<style>

</style>
<link href="/include/WeiHuCSS.css" rel="stylesheet" type="text/css">

<jsp:include page="/public/_nocache.jsp" flush="true" />
<jsp:include page="/public/_head.jsp" flush="true" />
<title>可疑职位信息筛选</title>
...

<script type="text/javascript">
[b]<!-- 控制下拉列表的值 -->	
function vaildate()   {   
      //var getselect=document.thisForm2.currentPageNo.value;   
     // document.thisForm2.val.value=getselect;   
     // document.thisForm1.submit();  //这样写是提交
     //下面是个连接
     window.location.href = "/weihu/Server/dubietyPosition.jsp?currentPageNo=" + document.thisForm1.currentPageNo.value; 
} 
</script>[/b]
</head>
  
 <body bgcolor="#E6E6E6" leftmargin="0" topmargin="0">
     <table width="759" border="0" align="center" cellpadding="0" cellspacing="0" bgcolor="#FFFFFF">
       <tr>
	<td>
	   <%@include file="/weihu/inc/serve.jsp"%>
	      <table width="759" border="0" align="center" cellpadding="0" cellspacing="0">
		<tr>
		  <td height="1" bgcolor="#F4F4F4"></td>
		</tr>
		<tr>
		  <td height="23" bgcolor="#E5EAEF" class="td2">
		  <font color="#7B7B7B"><strong>
	           <p style="margin-top:3px"> 您所在的位置:客户服务部 > 可疑职位信息筛选</p></strong></font>
		  </td>
		</tr>
	      </table>
	  <form name="thisForm1" method="post" action="dubietyPosition.jsp?currentPageNo=<%=page1.getCurrentPageNo() %>" >
	 <table border="0" cellpadding="0" cellspacing="2" align="center"width="100%">
	<tr>
	  <td colspan="7" class="left">同时显示职位摘要信息<input type="checkbox" onclick="toggleAll(this);" checked="checked"/></td>
	</tr>
	<tr>
	         <th width="5%">序号</th>
	         <th width="20%">招聘职位</th>
		<th width="35%">企业名称</th>
		<th width="12%">工作地区</th>
		<th width="10%">最低学历</th>
		<th width="10%">工作经验</th>
		<th width="8%">选择</th>
	</tr>
	<%if(listDP!=null){ %>				
	<%Iterator it=listDP.iterator();
	    while(it.hasNext()){
	            DubietyPosition dp=(DubietyPosition)it1.next();
	%>
	<tr class="tr<%=(i+1)%2%>">
	   <td><b><%=i++ %></b> </td>
	   <td class="left"><%=dp.getPosname() %></td>
	   <td class="left"><%=dp.getComname() %> </td>
	   <td><%=dp.getAddress() %></td>
	   <td><%=dp.getReqDegreeName() %></td>
	  <td><%if(dp.getReqWorkYear()==-100) {%>不限
	<%}else{ %>
	<%=dp.getReqWorkYear() %>年
	<%} %>
                </td>
		<td>
		<%if(dpDao.getMapPosState().get(new Integer(dp.getPosId())).equals(new Integer(1))){ %>
               <input type="checkbox" value="<%=dp.getPosId() %>" name="posIds" disabled="disabled"/>
                 <%}else{ %>
   <input type="checkbox" value="<%=dp.getPosId() %>" name="posIds"/>
                          <%} %>
	        </td>
         </tr>
	<tr class="tr<%=i%2%>" id="desc" name="desc">
	<td colspan="7" class="left"><div style="padding:0 15px;">     
		<%=dpDao.getMap().get(new Integer(dp.getPosId())) %></div></td>
		</tr>	
	  <% }%>
	<tr class="right">
	<td colspan="7">
       	<table>
	  <tr>
             <td>
	      <br/> 
		当前页为第 <%=page1.getCurrentPageNo() %> 页,总页数为<%=page1.getTotalPages() %>
<%if(page1.getCurrentPageNo()!=1){%>				     <a href="dubietyPosition.jsp?pageMethod=first"><u>第一页</u></a> 
<%} if(page1.getCurrentPageNo()>1){%>			
<a href="dubietyPosition.jsp?currentPageNo=<%=page1.getCurrentPageNo()-1 %>"><u>上一页</u></a>
<%} if(page1.getCurrentPageNo()<page1.getTotalPages()){%>
<a href="dubietyPosition.jsp?currentPageNo=<%=page1.getCurrentPageNo()+1 %>"><u>下一页</u></a> 
<%} if(page1.getCurrentPageNo()!=page1.getTotalPages()){%>
<a href="dubietyPosition.jsp?pageMethod=last"><u>最后一页</u></a>
<%} %>

[b]<!-- 下拉列表跳转 -->
  跳转到
      <select name="currentPageNo"  class="inputAndSelect"  onchange="vaildate()">   
               <%for(int k=1;k<=page1.getTotalPages();k++){ 
                    if(k==page1.getCurrentPageNo()){
               %>
         <option value="<%=k %>" selected="selected"><%=k %></option>
                    <%} else{%>
              <option value="<%=k %>"><%=k %></option>
                  <%}} %>
      </select>[/b]

	</td>
         </tr>
	</table><br/>
	选择所有<input type="checkbox" onclick="selectAll(this)"/><input type="submit" value="屏蔽选择的职位">			
	</td>
</tr>
		<%}else{ %>
	  <tr><td colspan="7" class="center">没有任何数据 </td> </tr>
<%} %>
</table>
	</form>
	<jsp:include page="../inc/footer.jsp" flush="true" />
</td>
	  </tr>
    </table>		
  </body>
</html>


javascript:
 <script type="text/javascript">  
 <b><!-- 控制下拉列表的值 -->      
 function vaildate()   {     
       //var getselect=document.thisForm2.currentPageNo.value;     
     // document.thisForm2.val.value=getselect;     
      // document.thisForm1.submit();  //这样写是提交  
      //下面是个连接  
      window.location.href = "/weihu/Server/dubietyPosition.jsp?currentPageNo=" + document.thisForm1.currentPageNo.value;   
}   
</script>

页面中对应form中的代码
<select name="currentPageNo"  class="inputAndSelect"  onchange="vaildate()">     
               <%for(int k=1;k<=page1.getTotalPages();k++){   
                     if(k==page1.getCurrentPageNo()){  
                %>  
          <option value="<%=k %>" selected="selected"><%=k %></option>  
                    <%} else{%>  
              <option value="<%=k %>"><%=k %></option>  
                   <%}} %>  
       </select></b> 


------------------------------------
一个工具类Page.java
package com.huanglq.weihu.util;

import java.util.List;

/**
 * 用于做分页
 * @author huanglq
 *
 */
public class Page {

	//总行数
	private int totalRows;
	
	//每页显示的记录数,这里已经事先给了20条
	private int pageSize=20;
	
	//当前页
	private int currentPageNo;
	
	//总页数
	private int totalPages;

	//DubietyPositionDao
	DubietyPositionDao dao=new DubietyPositionDao();
	//构造函数
	public Page(){
		totalRows=dao.getTotalRows();
		if(totalRows%pageSize==0){
			totalPages=totalRows/pageSize;
		}else{
			totalPages=totalRows/pageSize+1;
		}
		//为防止currentPageNo出异常在这里事先给了currentPageNo=1
		currentPageNo=1;
	}
	//获得每页的记录
	public List getCurrentPage(int _currentPageNo,int _pageSize){
		return dao.currentPage(_currentPageNo, _pageSize);
	}
	
	//第一页
	public void first(){
		currentPageNo=1;
	}
	
	//最后一页
	public void last(){
		currentPageNo=totalPages;
	}
	//防止出现大于最后一页
	public void refresh(int _currentPageNo){
		currentPageNo=_currentPageNo;
		if(currentPageNo>totalPages)
			last();
	}
	
	
	public int getTotalRows() {
		return totalRows;
	}

	public void setTotalRows(int totalRows) {
		this.totalRows = totalRows;
	}

	public int getPageSize() {
		return pageSize;
	}

	public void setPageSize(int pageSize) {
		this.pageSize = pageSize;
	}

	public int getCurrentPageNo() {
		return currentPageNo;
	}

	public void setCurrentPageNo(int currentPageNo) {
		this.currentPageNo = currentPageNo;
	}

	public int getTotalPages() {
		return totalPages;
	}

	public void setTotalPages(int totalPages) {
		this.totalPages = totalPages;
	}
	public DubietyPositionDao getDao() {
		return dao;
	}
	public void setDao(DubietyPositionDao dao) {
		this.dao = dao;
	}
	
}
----------------------
dao的DubietyPositionDao类的分页内容的写法1:用resultset分页

//pageSize页面大小,totalRows总行数
	public List getDPCurrentPage(int currentPageNo, int pageSize){
		List listDP=null;
		Connection conn = null;
		PreparedStatement pstmt = null;
		ResultSet rs = null;
		//用于计算页面的start
		int total = currentPageNo * pageSize;
		//每页的开始行数
		int start = total - pageSize + 1;
		
		String sql="select Top "+total+" posid,comname,posname,address_pc,reqDegreeName,reqworkyear "
		+"from huanglq_query..compos_query where contains(comname,'"+COMNAMES+"') "
		+"and contains(posname,'"+POSNAMES+"')";
		
		
		try {
			conn = DBUtil.getHuanglqQueryConn();
			pstmt = conn.prepareStatement(sql,
					ResultSet.TYPE_SCROLL_INSENSITIVE,//该常量指示可滚动但通常不受其他的更改影响的 ResultSet 对象的类型。
					ResultSet.CONCUR_READ_ONLY);//该常量指示不可以更新的 ResultSet 对象的并发模式
			
			rs = pstmt.executeQuery();

			Log.debug(this, "getDPCurrentPage(int currentPageNo, int pageSize)", sql.toString());

			if (rs.absolute(start)) {//rs指向当前页的开始行
				listDP = new ArrayList();
				while (rs.getRow() <= total) {
					DubietyPosition dp = new DubietyPosition();
					dp.setPosId(rs.getInt("posid"));
					dp.setComname(rs.getString("comname"));
					dp.setPosname(rs.getString("posname"));
					dp.setAddress(rs.getString("address_pc"));
					dp.setReqWorkYear(rs.getInt("reqworkyear"));
					dp.setReqDegreeName(rs.getString("reqDegreeName"));
					// 把可疑职位添加到可疑职位列表中
					listDP.add(dp);
					
					/*
					 * rs.nect()的作用是使rs.getRow()每次都加1,还有当页面不足要求的记录时可以跳出循环,防止null异常
					 */
					if (!rs.next()) {
						break;
					}
				}
			}
		} catch (Exception e) {
			Log.error(this, "getDPCurrentPage(int currentPageNo, int pageSize)", e.getMessage());
		} finally {
			DBUtil.clean(this, rs);
			DBUtil.clean(this, pstmt);
			DBUtil.clean(this, conn);
		}
		return listDP;
	}

dao的DubietyPositionDao类的分页内容的写法2:用sql语句传参分页
public List currentPage(int currentPageNo, int pageSize) {
	List listDP = new ArrayList();// 可疑职位列表	
	Connection conn = null;
	PreparedStatement pstmt = null;
	ResultSet rs = null;

	int pageNo = (currentPageNo - 1) * pageSize;
	int pSize = pageSize;
	// 分页查询语句
	String sql = "select Top "+ pSize+ " posid,comname,posname,address_pc,reqDegreeName,reqworkyear from huagnlq_query..compos_query where posid not in " + "( select Top "+ pageNo+ " posid from huanglq_query..compos_query order by inserttime desc)  order by inserttime desc";

	try {
	    conn = DBUtil.getHuanglqQueryConn();
	    pstmt = conn.prepareStatement(sql);
	    rs = pstmt.executeQuery();
	    while (rs.next()) {
	         DubietyPosition dp = new DubietyPosition();
		dp.setPosId(rs.getInt("posid"));
		dp.setComname(rs.getString("comname"));
		dp.setPosname(rs.getString("posname"));
		dp.setAddress(rs.getString("address_pc"));
		dp.setReqWorkYear(rs.getInt("reqworkyear"));
	        dp.setReqDegreeName(rs.getString("reqDegreeName"));
		// 把可疑职位添加到可疑职位列表中
		listDP.add(dp);
	    }
	} catch (Exception e) {
		e.printStackTrace();
	} finally {
		DBUtil.clean(listDP, rs);
		DBUtil.clean(listDP, pstmt);
		DBUtil.clean(listDP, conn);
	}
	return listDP;
	}

DubietyPositionDao.java
package com.huanglq.weihu.dao;

/**
 * 这是一个装载可疑职位的类的Dao
 * 这里涉及和两个数据库huanglw_query..compos_query和[huanglq].[dbo].[com_Position]
 */
import java.sql.Connection;
import java.sql.PreparedStatement;
import java.sql.ResultSet;
import java.sql.Statement;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import java.util.Date;

import com.huanglq.message.Message;
import com.huanglq.util.DBUtil;
import com.huanglq.util.DateTime;
import com.huanglq.util.Log;

public class DubietyPositionDao {
	
	//公司名包含的字段
	public static final String[] COMNAME_CONTAINS = {"娱乐","俱乐部","酒店","会所","休闲","夜总会","贵族","酒城"};
	
	//职位包含的字段
	public static final String[] POSNAME_CONTAINS = {"dj","服务员","特陪","特服生","接待","公关","陪","服务生",
		"少爷","公主","伴游","特服生","私人","接待","夜总会","桑拿"};
	//公司名包含的字段转换后的字段
	public static String COMNAMES="";
	//职位包含的字段转换后的字段
	public static String POSNAMES="";
	
	//用静态初始化块来初始化COMNAMES和POSNAMES
	static {
		for(int i=0;i<COMNAME_CONTAINS.length;i++){
			COMNAMES=COMNAMES+COMNAME_CONTAINS[i]+" or ";
		}
		COMNAMES = COMNAMES.substring(0, COMNAMES.length() - 4);
		
		for(int i=0;i<POSNAME_CONTAINS.length;i++){
			POSNAMES=POSNAMES+POSNAME_CONTAINS[i]+" or ";
		}
		POSNAMES = POSNAMES.substring(0, POSNAMES.length() - 4);
	}
	
	//用于查询获得可疑职位总记录数的sql语句
	public static final String TOTALSIZE_SQL="select count(*) from huauglq_query..compos_query where contains " +
			"(comname,'"+COMNAMES+"') and  contains(posname,'"+POSNAMES+"')";
	
	// 用来存储posid和其posDescription,map(posid,posDescription)
	private Map map = new HashMap();
	// 用来存储posid和其posState,map(posid,posState)
	private Map mapPosState = new HashMap();

	// 数据库是huanglq_query..compos_query
	// 获得可疑职位总记录数
	public int getTotalRows() {
		int totalRows = 0;
		Connection conn = null;
		PreparedStatement pstmt = null;
		ResultSet rs = null;

		try {
			conn = DBUtil.getHuanglqQueryConn();
			pstmt = conn.prepareStatement(TOTALSIZE_SQL);
			rs = pstmt.executeQuery();
			while (rs.next()) {
				totalRows = rs.getInt(1);
			}
			Log.debug(this, "DubietyPositionDao.getTotalRows()", TOTALSIZE_SQL);
		} catch (Exception e) {
			Log.error(this, "DubietyPositionDao.getTotalRows()", e.getMessage());
		} finally {
			DBUtil.clean(this, rs);
			DBUtil.clean(this, pstmt);
			DBUtil.clean(this, conn);
		}
		return totalRows;
	}

	// 数据库是huanglq_query..compos_query
	// 按页查找可疑记录,用于做分页
	public List currentPage(int currentPageNo, int pageSize) {
		List listDP = new ArrayList();// 可疑职位列表
		
		long startTime=new Date().getTime();
		
		Connection conn = null;
		PreparedStatement pstmt = null;
		ResultSet rs = null;

		int pageNo = (currentPageNo - 1) * pageSize;
		int pSize = pageSize;
		// 分页查询语句
		String sql = "select Top "
				+ pSize
				+ " posid,comname,posname,address_pc,reqDegreeName,reqworkyear from huanglq_query..compos_query where posid not in "
				+ "( select Top "
				+ pageNo
				+ " posid from huanglq_query..compos_query "
				+ "where contains(comname,'"+COMNAMES+"') "
				+ "and contains(posname,'"+POSNAMES+"') order by inserttime desc) "
				+ "and contains(comname,'"+COMNAMES+"')"
				+ " and contains(posname,'"+POSNAMES+"') order by inserttime desc";

		try {
			conn = DBUtil.getHuanglqQueryConn();
			pstmt = conn.prepareStatement(sql);
			rs = pstmt.executeQuery();
			while (rs.next()) {
				DubietyPosition dp = new DubietyPosition();
				dp.setPosId(rs.getInt("posid"));
				dp.setComname(rs.getString("comname"));
				dp.setPosname(rs.getString("posname"));
				dp.setAddress(rs.getString("address_pc"));
				dp.setReqWorkYear(rs.getInt("reqworkyear"));
				dp.setReqDegreeName(rs.getString("reqDegreeName"));
				// 把可疑职位添加到可疑职位列表中
				listDP.add(dp);
			}
			Log.debug(this, "DubietyPositionDao.currentPage(int currentPageNo, int pageSize)", sql);
		} catch (Exception e) {
			Log.error(this, "DubietyPositionDao.currentPage(int currentPageNo, int pageSize)", e.getMessage());
		} finally {
			DBUtil.clean(listDP, rs);
			DBUtil.clean(listDP, pstmt);
			DBUtil.clean(listDP, conn);
		}
		long endTime=new Date().getTime();
		System.out.println(endTime-startTime+" ***************************");
		return listDP;
	}

	// 数据库是[huanglq].[dbo].[com_Position]
	// 根据posid来修改可疑职位,把可疑记录的状态改为屏蔽,
	// --PosState 0=删除,1=屏蔽,2=正常
	public void modifyPosState(int posid) {
		Connection conn = null;
		PreparedStatement pstmt = null;
		//提交后把posState改为1
		String sql = "UPDATE [huanglq].[dbo].[com_Position] SET PosState =1,UpdateDate=getDate() WHERE posId=?";
		try {
			conn = DBUtil.getHuanglq90Conn();
			pstmt = conn.prepareStatement(sql);
			pstmt.setInt(1, posid);
			pstmt.execute();
			Log.debug(this, "DubietyPositionDao.modifyPosState(int posid)", sql);
		} catch (Exception e) {
			Log.error(this, "DubietyPositionDao.modifyPosState(int posid)", e.getMessage());
		} finally {
			DBUtil.clean(this, pstmt);
			DBUtil.clean(this, conn);
		}
	}

	// 数据库是[huanglq].[dbo].[com_Position]
	// 根据posid来查找可疑职位的摘要信息,用map来存放
	// 这里目的是可以减少对数据库的频繁操作,这里只操作一次
	// --PosState 0=删除,1=屏蔽,2=正常
	// 根据posStatus=1来找posid把checkbox的disabled="disabled"填上
	// mapPosState保存mapPosState(posid,posStatus),map保存map(posid,posDescription)
	//posids是一个经过转换格式的posid集合
	public void getPosDescAndState(String posids) {
		Connection conn = null;
		Statement pstmt = null;
		ResultSet rs = null;
		String sql = "select posid,posDescription,posState from [huanglq].[dbo].[com_Position] WHERE posID in(";
		try {
			conn = DBUtil.getHuanglqConn();
			pstmt = conn.createStatement();
			rs = pstmt.executeQuery(sql + posids + ")");
			while (rs.next()) {
				Integer posId = new Integer(rs.getInt("posid"));
				String posDescription = "";
				try {
					posDescription = rs.getString("posDescription");
				} catch (Exception e) {
					posDescription = "暂时还没有输入数据";
				}
				map.put(posId, posDescription);
				mapPosState.put(posId, new Integer(rs.getInt("posState")));
			}
			Log.debug(this, "DubietyPositionDao.getPosDescAndState(String posids)", sql);
		} catch (Exception e) {
			Log.error(this, "DubietyPositionDao.getPosDescAndState(String posids)", e.getMessage());
		} finally {
			DBUtil.clean(this, rs);
			DBUtil.clean(this, pstmt);
			DBUtil.clean(this, conn);
		}
	}

	public Map getMap() {
		return map;
	}

	public void setMap(Map map) {
		this.map = map;
	}

	public Map getMapPosState() {
		return mapPosState;
	}

	public void setMapPosState(Map mapPosState) {
		this.mapPosState = mapPosState;
	}
	
	//分页方法2,这个比较快
	//pageSize页面大小,totalRows总行数
	public List getDPCurrentPage(int currentPageNo, int pageSize){
		List listDP=null;
		Connection conn = null;
		PreparedStatement pstmt = null;
		ResultSet rs = null;
		//用于计算页面的start
		int total = currentPageNo * pageSize;
		//每页的开始行数
		int start = total - pageSize + 1;
		
		String sql="select Top "+total+" posid,comname,posname,address_pc,reqDegreeName,reqworkyear "
		+"from huanglq_query..compos_query where contains(comname,'"+COMNAMES+"') "
		+"and contains(posname,'"+POSNAMES+"')";
		
		
		try {
			conn = DBUtil.getHuanglqQueryConn();
			pstmt = conn.prepareStatement(sql,
					ResultSet.TYPE_SCROLL_INSENSITIVE,//该常量指示可滚动但通常不受其他的更改影响的 ResultSet 对象的类型。
					ResultSet.CONCUR_READ_ONLY);//该常量指示不可以更新的 ResultSet 对象的并发模式
			
			rs = pstmt.executeQuery();

			Log.debug(this, "getDPCurrentPage(int currentPageNo, int pageSize)", sql.toString());

			if (rs.absolute(start)) {//把rs移到当前页的开始行
				listDP = new ArrayList();
				while (rs.getRow() <= total) {
					DubietyPosition dp = new DubietyPosition();
					dp.setPosId(rs.getInt("posid"));
					dp.setComname(rs.getString("comname"));
					dp.setPosname(rs.getString("posname"));
					dp.setAddress(rs.getString("address_pc"));
					dp.setReqWorkYear(rs.getInt("reqworkyear"));
					dp.setReqDegreeName(rs.getString("reqDegreeName"));
					// 把可疑职位添加到可疑职位列表中
					listDP.add(dp);
					
					/*
					 * rs.next()的作用是使rs.getRow()每次都加1,还有当页面不足要求的记录时可以跳出循环,防止null异常
					 */
					if (!rs.next()) {
						break;
					}
				}
			}
		} catch (Exception e) {
			Log.error(this, "getDPCurrentPage(int currentPageNo, int pageSize)", e.getMessage());
		} finally {
			DBUtil.clean(this, rs);
			DBUtil.clean(this, pstmt);
			DBUtil.clean(this, conn);
		}
		return listDP;
	}
	
}


/**
* DubietyPosition.java
* 这是一个装载可疑职位的类
* 用于可疑职位信息筛选
*/
package com.jobcn.weihu.vo;

public class DubietyPosition {

	// 职位id
	private int posId;

	// 招聘职位名
	private String posname;

	// 公司名
	private String comname;

	// 地址
	private String address;

	// 要求学历
	private String reqDegreeName;

	// 工作经验
	private int reqWorkYear;

	public int getPosId() {
		return posId;
	}

	public void setPosId(int posId) {
		this.posId = posId;
	}

	public String getPosname() {
		return posname;
	}

	public void setPosname(String posname) {
		this.posname = posname;
	}

	public String getComname() {
		return comname;
	}

	public void setComname(String comname) {
		this.comname = comname;
	}

	public String getAddress() {
		return address;
	}

	public void setAddress(String address) {
		this.address = address;
	}

	public String getReqDegreeName() {
		return reqDegreeName;
	}

	public void setReqDegreeName(String reqDegreeName) {
		this.reqDegreeName = reqDegreeName;
	}

	public int getReqWorkYear() {
		return reqWorkYear;
	}

	public void setReqWorkYear(int reqWorkYear) {
		this.reqWorkYear = reqWorkYear;
	}
}
分享到:
评论

相关推荐

    Java Ajax分页,jsp ajax分页

    Ajax + JavaScript + MySQL 实现的Ajax分页功能

    java中级笔记+severlet jsp 分页 ajax等技术的笔记

    severlet jsp 分页 ajax等技术的笔记

    Java+MySQL+JSP+Java原生手写实现分页

    纯手写Java后端分页功能:掌握后端分页原理,数据库分页查询实现技巧。内置完整代码,数据库sql文件,开发环境下载地址,亲测运行无误,请放心使用!

    Jsp.rar_jsp 分页_jsp分页_索引 JavaScript

    高效的jsp分页查询,方案:如果没有主键,可以用临时表,也可以用方案三做,但是效率会低。 建议优化的时候,加上主键和索引,查询效率会提高。

    jsp分页插件--PageBean(java源码)

    * PageControl, 分页控制, 可以判断总页数和是否有上下页. * * 2008-07-22 加入输出上下分页HTML代码功能 * * @author HX * @version 1.1 2008-9-22 */ public class PageBean { /** 每页显示记录数 */ ...

    Ajax JavaScript jsp 分页效果

    分页意味着你将一个很大的数据集合分开放到多个页面中。用JavaScript做的一个分页代码

    jsp+servlet简单分页实现

    通过JavaScript函数调用jQuery load函数来实现分页。load函数中将起始页数发送至servlet,servlet通过DataService从数据库中获取数据。但是每次点击都会请求数据库。

    JSP中分页效果实现步骤

    在JSP页面中,使用JavaScript脚本来实现翻页功能。当用户点下一页或上一页的时候,JavaScript脚本将更新隐藏域中的页码值,并提交表单到当前页面。 ```javascript &lt;script type="text/javascript"&gt; function ...

    JSP 假分页 使用javascript

    在jsp文件中,使用简单的javascript技术,实现假分页

    jsp 分页代码大全

    有上一页、下一页、首页、尾页、第几页、还有带数字和点的分页。可以说是非常好的分页代码。想要的朋友自己处下载 ; charset=GB2312" language="java" import="java.sql.*" errorPage="" %&gt; &lt;%@ page import="java....

    Jsp分页实例代码.doc

    纯手写Jsp+javascript实现分页

    基于Jsp在线音乐信息管理系统(含前后台)(Java+jsp+mysql+javascript)

    javaWeb,jsp,css,JavaScript,javascript,Ajax 二、主要功能有: 系统分为两种角色:管理员、普通用户 主要功能有: 前台用户:查询歌曲,歌曲在线试听,歌曲下载,页面分页功能,最近播放功能,浏览歌曲信息 ...

    Java+jsp+js实现前后端分页.zip

    资源含前后端源码,帮助教程,Java+jsp+js实现前后端分页

    jsp ajax js 实现省略号分页

    jsp带省略号的分页 使用ajax javascript实现 测试需要导入相应的数据库表和修改一些基本配置(不会导入表和修改配置的人不建议下载,免得说浪费你积分)

    分页的详解源代码

    第二种使用了Jsp中的JavaScript的函数功能实现前台与后台的连接,本次使用后台的计算与绘制功能,使jsp页面做到最大简洁,但不建议使用此种方式,可作为参考。(默认功能为第一种MVC架构,前台绘制功能)。代码注解...

    Java Oracle分页处理

    //若提交页面有提交信息,则用listForm获取进行数据库查询 //ListForm listForm = (ListForm) form;// TODO Auto-generated method stub List&lt;PageBean&gt; list = new ArrayList(); newgetResouce ...

    Servlet+Jsp+Ajax分页增删改查

    使用Servlet+Jsp+JDBC实现增删改查,前台显示界面使用JavaScript、Ajax与后台交互进行登录验证,并对查询结果实现分页、局部刷新,以及复选框(全选、反选)操作,适合Web开发的初学者

    JSP中使用Ajax完美实现异步无刷新数据分页

    JSP中使用Ajax完美实现异步无刷新数据分页

    JSTL JSP 自定义标签 分页

    jh-plugins特点:高效、轻巧、简单、适用(可融合与任何B/S架构的java项目) jh-plugins使用详解: 导入jh-plugins.jar,引入标签库; 1.分页标签库 PageModel pagem = new PageModel(); pagem.setDtotal(168); pagem....

    dhtmlx-grid分页-示例,后台java调用

    5 资源包中有具体使用代码和组件的整个js 前端使用jsp 你只需要看分页那部分即可 其他的传的变量可以不管 以下粘贴重要的ui代码调用: &lt;script type &quot;text javascript&quot;&gt; var currpage &lt;% ...

Global site tag (gtag.js) - Google Analytics