csuboy的个人主页

http://www.csuboy.com/u/1  [收藏] [复制]

csuboy

QQ空间人气之星软件打开后软件无反应的错误已经解决,请2010年12月23号0点之前下载的重新下载安 ..

  • 5228

    关注

  • 6700

    粉丝

  • 4741

    访客

  • 等级:研究生三年级
  • 身份:管理员
  • 总积分:27162
  • 男,1999-02-18
  • 中南大学

最后登录:2022-10-08

更多资料

日志

2010-03-13 23:22

复制代码import java.io.*;
import java.util.*;
import javax.servlet.*;
import javax.servlet.http.*;

public class SessionExample extends HttpServlet {

public void doGet(HttpServletRequest request, HttpServletResponse response)
throws IOException, ServletException
{
response.setContentType("text/html");
PrintWriter out = response.getWriter();

HttpSession session = request.getSession(true);

// print session info

Date created = new Date(session.getCreationTime());
Date access ..

阅读全文»分类:Java|回复:0|浏览:437

Powered by phpwind v8.7 Certificate Copyright Time now is:03-29 13:27
©2003-2011 CsuBoy综合社区 版权所有 Gzip enabled 豫ICP备18013570号-4 Total 0.190671(s)