?? cexpirelist.java
字號:
/*
* This product includes software developed by the
* Apache Software Foundation (http://www.apache.org/).
*/
package ch06.controller;
import java.io.*;
import java.text.SimpleDateFormat;
import java.util.*;
import java.util.Hashtable;
import javax.servlet.*;
import javax.servlet.http.*;
import ch06.*;
import ch06.module.*;
/**
* 針對過期簡歷處理頁面一覽的Servlet
* @author ShenYK
* @version 1.0
*/
public class CExpireList
{
//跳轉到哪一頁,非常簡單,只需要傳遞當前的頁碼就可以了
public String gotoPage ( HttpServletRequest request,
HttpServletResponse response )
throws Exception
{
//獲得session對象
HttpSession mySession = request.getSession(true);
//注意:不必設置session中的頁面值域
//得到要去的頁碼
String sGotoPage = request.getParameter("gotoPageNo");
Hashtable myValues = (Hashtable)mySession.getAttribute(CommonConst.VIEWID_EXPIRE_LIST);
myValues.put( "curPage", new Integer(sGotoPage) );
return "expire.jsp";
}
//查看詳細簡歷信息進行處理
public String viewResume( HttpServletRequest request,
HttpServletResponse response )
throws Exception
{
//獲得session對象
HttpSession mySession = request.getSession(true);
//設置session中的頁面值域
mySession.setAttribute(CommonConst.VIEWID_EXPIRE_DETAIL, new Hashtable() );
//得到當前系統時間
String sDate = (new SimpleDateFormat("yyyy/MM/dd")).format(new Date(System.currentTimeMillis()));
//得到對應的簡歷信息
String sResumeId = request.getParameter("resumeId");
Hashtable preValues = (Hashtable)mySession.getAttribute(CommonConst.VIEWID_EXPIRE_LIST);
int iResumeId = (new Integer(sResumeId)).intValue();
ResumeContent resumeObj = (ResumeContent)( (Vector)preValues.get("resumes") ).get( iResumeId );
Hashtable myValues = (Hashtable)mySession.getAttribute(CommonConst.VIEWID_EXPIRE_DETAIL);
myValues.put( "resume", resumeObj );
myValues.put( "curDate", sDate );
return "expireDetail.jsp";
}
}
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -