// load note lists and show them in jsp page
@Override
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) {