1配置好jdbc 2创建LoginServlet 3创建RegServlet 4配置DBUtil工具类 5配置web.xml 6登录用户信息 7登录失败返回登录界面 8注册成功跳到登录页面注册失败返回注册页面