码,要求详细代码。编写Servlet类处理控制流程。并写出Servlet部署文件web.xml。编写Javabean文件描述用户的注册信息,负责连接数据库,判断用户名是否存在以及保存注册数据。a)register.jspform表单<formaction="registerservlet"class="form"method="post"><inputtype="text"name="username"value="用户名"/><inputtype="password"name="userpass"value="密码"/><inputtype="submit"class="denglu"value="注册"/></form>b)Registerservlet.java(注册功能的servlet)lassRegisterservletextendsHttpServlet{publicvoidinit(ServletConfigconfig)throwsServletException{ super.init(config);?}?publicvoiddoGet(HttpServletRequestrequest,HttpServletResponseresponse)throwsServletException,IOException{ request.setCharacterEncoding("utf-8"); Stringusername=request.getParameter("username"); Stringuserpass=request.getParameter("userpass"); Useruser=newUser(); booleanisExist=user.usernameIsExist(username); if(isExist==false){