- 博客(1)
- 资源 (3)
- 收藏
- 关注
原创 Ambari install HDP2.x(Set Local Repository)
1. 永久修改主机名: vi /etc/sysconfig/network 2. 时区设置: ln -sf /usr/share/zoneinfo/$主时区/$次时区 /etc/localtime 1. 查看当前时区 date -R zdump /etc/localtime chkconfig ntpd on service ntpd start 3. 防火墙设置 严格来说
2014-03-28 11:08:40
1567
1
Hibernate Core 3.3.2.GA API+Hibernate_3.2.0_符合Java习惯的关系数据库持久化_zh_CN
Hibernate Core 3.3.2.GA API+Hibernate_3.2.0_符合Java习惯的关系数据库持久化_zh_CN
2010-04-09
JAVA WEB 开发详解(JSP+Serlet)
package org.sunxin.lesson.jsp.ch24;
import javax.servlet.*;
import java.io.*;
import javax.servlet.http.*;
public class LoginCheckServlet extends HttpServlet
{
public void doPost(HttpServletRequest req, HttpServletResponse resp)
throws ServletException,IOException
{
HttpSession session=req.getSession();
String randomCode=(String)session.getAttribute("randomCode");
if(null==randomCode)
{
resp.sendRedirect("login.html");
return;
}
String reqRandom=req.getParameter("random");
req.setCharacterEncoding("GBK");
resp.setContentType("text/html;charset=GBK");
PrintWriter out=resp.getWriter();
if(randomCode.equals(reqRandom))
{
out.println("验证码匹配!");
}
else
{
out.println("验证码校验失败,请返回重新输入!");
}
out.close();
}
}
2009-03-13
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人