Package com.vsked.bean

Examples of com.vsked.bean.Usert


   */
  public void doGet(HttpServletRequest request, HttpServletResponse response)
      throws ServletException, IOException {
    String username=request.getParameter("username");
    String userpwd=request.getParameter("userpwd");
    Usert user=new Usert(username,userpwd);
    HttpSession session=request.getSession(true);
   
    if(new UserDAO().CheckLogin(user)){
      session.setAttribute("user","登陆成功!")
      response.sendRedirect("loginok.jsp");
View Full Code Here


   */
  public void doGet(HttpServletRequest request, HttpServletResponse response)
      throws ServletException, IOException {
    String username=request.getParameter("username");
    String userpwd=request.getParameter("userpwd");
    Usert user=new Usert(username,userpwd);
    HttpSession session=request.getSession(true);
    if(new UserDAO().AddUser(user)){
      session.setAttribute("user","注册成功");
      response.sendRedirect("loginok.jsp");
    }else{
View Full Code Here

TOP

Related Classes of com.vsked.bean.Usert

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.