- 分享
- 0
- 人气
- 0
- 主题
- 10
- 帖子
- 551
- UID
- 36793
- 积分
- 862
- 阅读权限
- 17
- 注册时间
- 2006-6-8
- 最后登录
- 2015-5-7
- 在线时间
- 2568 小时
      
|
- protected void processRequest(HttpServletRequest request, HttpServletResponse response)
- throws ServletException, IOException {
- response.setContentType("text/html;charset=UTF-8");
- PrintWriter out = response.getWriter();
- try {
- HttpSession session=request.getSession();
- session.invalidate();
- response.sendRedirect("index.jsp");
- } finally {
- out.close();
- }
- }
复制代码- session = request.getSession(false);
- String validUser = (String) session.getAttribute("validUser");
- //PackagePurchased pp =(PackagePurchased)session.getAttribute("purchase");
- // Details
- String packageID = null;
- String description = null;
- String startDate = null;
- String endDate = null;
- String destination = null;
- double cost = 0;
- String quantity = null;
- String date = null;
- double totalCost = 0;
- Vector v = new Vector();
- PackagePurchased pp;
- int LoginID = 0;
- String LoginName = null;
- if (validUser == null || validUser.equals("NO")) {
- response.sendRedirect("login.jsp");
- } else {
- v = (Vector) session.getAttribute("history");
- }
复制代码
谢谢! |
|