stringBuilder.append("&nbsp;<a href=\"").append(request.getContextPath()).append(getUrl()).append("&").append(getPageNumberAttributeName()).append("=").append(Integer.toString(pageNumber + 1)).append("\">"); stringBuilder.append(getMessage("label.collectionPager.next", ">")).append("</a>"); stringBuilder.append("&nbsp;<a href=\"").append(request.getContextPath()).append(getUrl()).append("&").append(getPageNumberAttributeName()).append("=").append(Integer.toString(lastPage)).append("\">"); stringBuilder.append(getMessage("label.collectionPager.last", ">>")).append("</a>");
stringBuilder.append("&nbsp;<a href=\"").append(request.getContextPath()).append(getUrl()).append("&amp;").append(getPageNumberAttributeName()).append("=").append(Integer.toString(pageNumber + 1)).append("\">"); stringBuilder.append(getMessage("label.collectionPager.next", "&gt;")).append("</a>"); stringBuilder.append("&nbsp;<a href=\"").append(request.getContextPath()).append(getUrl()).append("&amp;").append(getPageNumberAttributeName()).append("=").append(Integer.toString(lastPage)).append("\">"); stringBuilder.append(getMessage("label.collectionPager.last", "&gt;&gt;")).append("</a>");
    private void addLastSymbols(StringBuilder stringBuilder, HttpServletRequest request, final int lastPage, final int pageNumber) throws JspException {	if (lastPage > 1 && pageNumber != lastPage) {           	    stringBuilder.append("&nbsp;<a href=\"").append(request.getContextPath()).append(getUrl()).append("&").append(getPageNumberAttributeName()).append("=").append(Integer.toString(pageNumber + 1)).append("\">");            	    stringBuilder.append(getMessage("label.collectionPager.next", ">")).append("</a>");                        stringBuilder.append("&nbsp;<a href=\"").append(request.getContextPath()).append(getUrl()).append("&").append(getPageNumberAttributeName()).append("=").append(Integer.toString(lastPage)).append("\">");                     stringBuilder.append(getMessage("label.collectionPager.last", ">>")).append("</a>");                        Integer numberOfVisualizedPages = (getNumberOfVisualizedPages() != null) ? Integer.valueOf(getNumberOfVisualizedPages()) : null;    	            if(numberOfVisualizedPages != null && numberOfVisualizedPages > 0 && lastPage > numberOfVisualizedPages.intValue()) {	            	stringBuilder.append(" <span style=\"color: #777;\">(Total: ").append(lastPage).append(")</span>");            }        }    }