try {
page = Integer.parseInt((String) req.getParameter("page"));
} catch (Exception e) {
page = 1;
}
PlaylistModel model = new PlaylistModel();
model.setPage(page);
model.prepareList(true);
req.setAttribute("model", model);
req.setAttribute("url", req.getRequestURL().toString());
req.getRequestDispatcher("/list_playlist.jsp").forward(req, resp);
} catch (Exception e) {
log.warning(e.toString());