//注册成功的信息保存在Session中
request.getSession().setAttribute(“ ”, u);
//服务器内部跳转:
request.getRequestDispatcher().forward(request,response);
request.getSession().setAttribute(“ ”, u);
//服务器内部跳转:
request.getRequestDispatcher().forward(request,response);
2015-07-26
SimpleDataFormat sdf = new SimpleDataFormat("YYYY年MM月dd日")
getParameterValues("XXX"); 得到字符数组
getParameterValues("XXX"); 得到字符数组
2015-07-26
out ------> response.getWriter()
request---->service(req)
reponse---->service(resp)
session---->req.getSession()
application--->getServletContext()
exception----->Throwable
page---------->this
pageContext--->pageContext
Config-------->getServletConfig
request---->service(req)
reponse---->service(resp)
session---->req.getSession()
application--->getServletContext()
exception----->Throwable
page---------->this
pageContext--->pageContext
Config-------->getServletConfig
2015-07-26
1、<loadon-startup>1</loadon-startup>
2、客户端首次访问servlet
3、servlet文件被更新,重新加载
2、客户端首次访问servlet
3、servlet文件被更新,重新加载
2015-07-26
response.setContentType("text/html;charset=utf8");
2015-07-26