首先,搭建登录页面并且可以链接注册页面Insert title here 用户名: 密码: 前往注册 Insert title here 用户名: 密码: 前往注册 同样的原理,搭建注册页面并且可以链接到登录页面,不同的是在里边加一个隐藏域用于后台分别登录和注册Insert title here 用户名: 密码: 确认密码: 登录 然后是后台页面,分别处理登录和注册的信息 String s= request.getParameter("paramType");if(s.equals("log")) { String username= request.getParameter("userna