Package DAO

Examples of DAO.JDBCGameDAO


    System.out.println(request.getParameter("num"));
    System.out.println(request.getParameter("rate"));
    User user =(User)request.getSession().getAttribute("user");
    System.out.println(user.getLogin());
   
    GameDAOInterface game = new JDBCGameDAO();
    float rate=0;
    try{
      rate=game.voteForGame(user.getLogin(), Integer.parseInt(request.getParameter("num")), Integer.parseInt(request.getParameter("rate")));
    }catch(Exception e){
      System.out.println(e.getMessage());
    }
    System.out.println(rate);
    String content = ""+rate;
View Full Code Here


  /**
   * @see HttpServlet#doGet(HttpServletRequest request, HttpServletResponse response)
   */
  protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
  JDBCGameDAO game = new JDBCGameDAO();
  if(request.getParameter("game")!=null){
    game.increaseNbOfPlays(request.getParameter("game"));
    GameInfo gameInfo =game.getGameInfo(request.getParameter("game"));
    request.setAttribute("game", gameInfo);
    request.getRequestDispatcher("game.jsp").forward(request, response);
    /*out.println("<embed src='http://localhost:8080/in56/"+gameInfo.getNom()+".swf' quality='high' pluginspage='http://www.macromedia.com/go/getflashplayer' type='application/x-shockwave-flash' height='480' width='720'/>");
    out.println("<br>Description<br>"+gameInfo.getDescription());
    out.println("<br>Controles<br>"+gameInfo.getControls());
View Full Code Here

      context.setAttribute("faq",Faq.getFaq());

      context.setAttribute("listOfGames", ListOfGames.getListOfGames());
      context.setAttribute("siteTitre", SiteInfo.getTitre());
      context.setAttribute("siteDescription", SiteInfo.getDescription());
      GameDAOInterface game = new JDBCGameDAO();
      context.setAttribute("gameOfTheMonth", game.getGameOfTheMonth());
     
      JDBCTableDAO table = new JDBCTableDAO();
    table.loadTables();
    table.loadDatas();
    context.setAttribute("listOfTables", beans.ListOfTables.getListOfTables());
View Full Code Here

    site.loadSiteInfo();
    context.setAttribute("listOfGames", ListOfGames.getListOfGames());
    context.setAttribute("siteTitre", SiteInfo.getTitre());
    context.setAttribute("siteDescription", SiteInfo.getDescription());
    context.setAttribute("faq",Faq.getFaq());
    GameDAOInterface game = new JDBCGameDAO();
    context.setAttribute("gameOfTheMonth", game.getGameOfTheMonth());   
  }
View Full Code Here

    site.loadSiteInfo();
    context.setAttribute("listOfGames", ListOfGames.getListOfGames());
    context.setAttribute("siteTitre", SiteInfo.getTitre());
    context.setAttribute("siteDescription", SiteInfo.getDescription());
    context.setAttribute("faq",Faq.getFaq());
    GameDAOInterface game = new JDBCGameDAO();
    context.setAttribute("gameOfTheMonth", game.getGameOfTheMonth());   
  }
View Full Code Here

    site.loadSiteInfo();
    context.setAttribute("listOfGames", ListOfGames.getListOfGames());
    context.setAttribute("siteTitre", SiteInfo.getTitre());
    context.setAttribute("siteDescription", SiteInfo.getDescription());
    context.setAttribute("faq",Faq.getFaq());
    GameDAOInterface game = new JDBCGameDAO();
    context.setAttribute("gameOfTheMonth", game.getGameOfTheMonth());   
  }
View Full Code Here

  /**
   * @see HttpServlet#doGet(HttpServletRequest request, HttpServletResponse response)
   */
  protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
    GameDAOInterface game = new JDBCGameDAO();
    request.setAttribute("gameOfTheMonth", game.getGameOfTheMonth());
    request.getRequestDispatcher("gameOfTheMonth.jsp").forward(request, response);
    return;
  }
View Full Code Here

TOP

Related Classes of DAO.JDBCGameDAO

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.