servlet中的代码如下
String tel=request.getParameter("tel");
String telphone= request.getParameter("telphone");
String password= request.getParameter("password");
UserService users = new UserServiceImpl();
Users user = new Users();
user.setPhonenum(tel+telphone);
user.setPwd(password);
users.insertUser(user);
request.getSession().setAttribute("user",user);
response.sendRedirect("UserCenter.jsp");
jsp中的代码如下
电话号码:${user.phonenum }