String pageNumberString = request.getParameter("pageNumber"); return (pageNumberString != null) ? Integer.valueOf(pageNumberString) : 1;
String pageNumberString = request.getParameter("pageNumber"); if (pageNumberString == null) { pageNumberString = (String) request.getAttribute("pageNumber"); } return (pageNumberString != null) ? Integer.valueOf(pageNumberString) : 1;
    public Integer getPageNumber(HttpServletRequest request) {        String pageNumberString = request.getParameter("pageNumber");        return (pageNumberString != null) ? Integer.valueOf(pageNumberString) : 1;    }