Package de.paulwein.notes.dao

Examples of de.paulwein.notes.dao.NotesDAO.fetchNotesLists()


  public void doGet(HttpServletRequest req, HttpServletResponse resp) throws IOException {
    super.doGet(req, resp);
    try {
      DAOFactory df = DAOFactory.getInstance();
      NotesDAO nDao = df.getDAO(Note.class, NotesDAO.class);
      List<NoteList> notesLists = nDao.fetchNotesLists(user.getUserId());
      req.setAttribute("list", notesLists);
      RequestDispatcher requestDispatcher = req.getRequestDispatcher(NOTELISTS_SERVLET + ".jsp");
      requestDispatcher.forward(req, resp);
    } catch (DAOException e) {
      errorOccured(resp);
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.