@Override
    protected void doGet(HttpServletRequest request, HttpServletResponse response)
            throws ServletException, IOException {
        
        RequestData rd = getRequestData(request);
        
        if (rd.page == null){
            request.getRequestDispatcher("WEB-INF/pages/index.jsp").forward(request, response);
            return;
        }
        
        Class clazz = null;
        StringBuilder page = new StringBuilder();
        try{
            clazz = Class.forName("models." + rd.page);
            page.append("WEB-INF/pages/").append(rd.page).append(".jsp");
        } catch (ClassNotFoundException|RuntimeException ex) {
            request.setAttribute("error", ex);
            page.append("WEB-INF/pages/index.jsp");
        }
        finally{
            request.setAttribute("table", helper.getTable(clazz, rd.id));
            request.getRequestDispatcher(page.toString()).forward(request, response);
        }
    }