List of usage examples for javax.servlet.jsp PageContext setAttribute
abstract public void setAttribute(String name, Object value);
From source file:org.gvnix.datatables.tags.SpringContextHelper.java
/** * Returns the current request Spring {@link RequestContext} object. If a * {@link RequestContext} is not already available, a new one is created and * included in the {@link PageContext}//w w w. ja va 2 s.c o m * * @param pageContext the current page context * @return the {@link RequestContext} related to this request. */ public RequestContext getRequestContext(PageContext pageContext) { RequestContext requestContext = (RequestContext) pageContext .getAttribute(RequestContextAwareTag.REQUEST_CONTEXT_PAGE_ATTRIBUTE); if (requestContext == null) { requestContext = new JspAwareRequestContext(pageContext); pageContext.setAttribute(RequestContextAwareTag.REQUEST_CONTEXT_PAGE_ATTRIBUTE, requestContext); } return requestContext; }
From source file:org.sakaiproject.iclicker.tool.ToolController.java
public void makeRunnerStatus(PageContext pageContext, boolean clearOnComplete) { // check for running process and include the info in the page BigRunner runner = logic.getRunnerStatus(); pageContext.setAttribute("runnerExists", runner != null); if (runner != null) { pageContext.setAttribute("runnerType", runner.getType()); pageContext.setAttribute("runnerPercent", runner.getPercentCompleted()); pageContext.setAttribute("runnerComplete", runner.isComplete()); pageContext.setAttribute("runnerError", runner.isError()); if (runner.isComplete() && clearOnComplete) { // clear the runner since it is completed logic.clearRunner();// www . j ava 2 s . c om } } else { pageContext.setAttribute("runnerType", "none"); pageContext.setAttribute("runnerPercent", 100); pageContext.setAttribute("runnerComplete", true); pageContext.setAttribute("runnerError", false); } }
From source file:org.sakaiproject.iclicker.tool.ToolController.java
/************************************************************************** * View handling methods// w w w . j ava2s. c o m ************************************************************************** */ public void processRegistration(PageContext pageContext, HttpServletRequest request) { // Handle the POST if there is one pageContext.setAttribute("newRegistration", false); pageContext.setAttribute("clickerIdText", ""); if ("POST".equalsIgnoreCase(request.getMethod())) { if ((request.getParameter("register") != null)) { // we are registering a clicker if ((request.getParameter("clickerId") == null)) { ToolController.addMessage(pageContext, ToolController.KEY_ERROR, "reg.activate.clickerId.empty", (Object[]) null); } else { String clickerId = request.getParameter("clickerId"); pageContext.setAttribute("clickerIdText", clickerId); // save a new clicker registration try { this.getLogic().createRegistration(clickerId); ToolController.addMessage(pageContext, ToolController.KEY_INFO, "reg.registered.success", clickerId); ToolController.addMessage(pageContext, ToolController.KEY_BELOW, "reg.registered.below.success", (Object[]) null); pageContext.setAttribute("newRegistration", true); } catch (ClickerRegisteredException e) { ToolController.addMessage(pageContext, ToolController.KEY_ERROR, "reg.registered.clickerId.duplicate", clickerId); ToolController.addMessage(pageContext, ToolController.KEY_BELOW, "reg.registered.below.duplicate", clickerId); } catch (ClickerIdInvalidException e) { if (Failure.EMPTY.equals(e.failure)) { ToolController.addMessage(pageContext, ToolController.KEY_ERROR, "reg.registered.clickerId.empty", (Object[]) null); } else if (Failure.LENGTH.equals(e.failure)) { ToolController.addMessage(pageContext, ToolController.KEY_ERROR, "reg.registered.clickerId.wrong.length", (Object[]) null); } else if (Failure.GO_NO_USER.equals(e.failure)) { ToolController.addMessage(pageContext, ToolController.KEY_ERROR, "reg.registered.clickerId.failure", clickerId); } else if (Failure.GO_LASTNAME.equals(e.failure)) { ToolController.addMessage(pageContext, ToolController.KEY_ERROR, "reg.registered.clickerId.go.wrong.lastname", (Object[]) null); } else if (Failure.GO_NO_MATCH.equals(e.failure)) { ToolController.addMessage(pageContext, ToolController.KEY_ERROR, "reg.registered.clickerId.go.invalid", clickerId); } else { ToolController.addMessage(pageContext, ToolController.KEY_ERROR, "reg.registered.clickerId.invalid", clickerId); } } } } else if ((request.getParameter("activate") != null)) { // First arrived at this page boolean activate = Boolean.parseBoolean(request.getParameter("activate")); if ((request.getParameter("registrationId") == null)) { ToolController.addMessage(pageContext, ToolController.KEY_ERROR, "reg.activate.registrationId.empty", (Object[]) null); } else { try { Long registrationId = Long.parseLong(request.getParameter("registrationId")); // save a new clicker registration ClickerRegistration cr = this.getLogic().setRegistrationActive(registrationId, activate); if (cr != null) { ToolController.addMessage(pageContext, ToolController.KEY_INFO, "reg.activate.success." + cr.isActivated(), cr.getClickerId()); } } catch (NumberFormatException e) { ToolController.addMessage(pageContext, ToolController.KEY_ERROR, "reg.activate.registrationId.nonnumeric", request.getParameter("registrationId")); } } } else if ((request.getParameter("remove") != null)) { if ((request.getParameter("registrationId") == null)) { ToolController.addMessage(pageContext, ToolController.KEY_ERROR, "reg.activate.registrationId.empty", (Object[]) null); } else { try { Long registrationId = Long.parseLong(request.getParameter("registrationId")); // remove a new clicker registration by deactivating it ClickerRegistration cr = this.getLogic().setRegistrationActive(registrationId, false); if (cr != null) { ToolController.addMessage(pageContext, ToolController.KEY_INFO, "reg.remove.success", cr.getClickerId()); } } catch (NumberFormatException e) { ToolController.addMessage(pageContext, ToolController.KEY_ERROR, "reg.activate.registrationId.nonnumeric", request.getParameter("registrationId")); } } } else { // invalid POST System.err.println("WARN: Invalid POST: does not contain register or activate, nothing to do"); } } pageContext.setAttribute("regs", this.getAllVisibleItems(null)); pageContext.setAttribute("isInstructor", this.isInstructor(), PageContext.REQUEST_SCOPE); // SSO handling pageContext.setAttribute("ssoEnabled", logic.isSingleSignOnEnabled()); // added to allow special messages below the forms pageContext.setAttribute("belowMessages", ToolController.getMessages(pageContext, ToolController.KEY_BELOW), PageContext.REQUEST_SCOPE); }
From source file:org.sakaiproject.iclicker.tool.ToolController.java
public void processInstructor(PageContext pageContext, HttpServletRequest request) { // admin/instructor check if (!this.isAdmin() && !this.isInstructor()) { throw new SecurityException("Current user is not an instructor and cannot access the instructor view"); }/* ww w. j av a2 s . co m*/ String courseId = request.getParameter("courseId"); pageContext.setAttribute("courseId", courseId); if (courseId != null) { pageContext.setAttribute("courseTitle", this.getLogic().getCourseTitle(courseId)); } List<Course> courses = logic.getCoursesForInstructorWithStudents(courseId); pageContext.setAttribute("courses", courses); pageContext.setAttribute("coursesCount", courses.size()); pageContext.setAttribute("showStudents", false); if (courseId != null && courses.size() == 1) { Course course = courses.get(0); pageContext.setAttribute("showStudents", true); pageContext.setAttribute("course", course); pageContext.setAttribute("students", course.students); pageContext.setAttribute("studentsCount", course.students.size()); } // SSO handling pageContext.setAttribute("ssoEnabled", logic.isSingleSignOnEnabled()); }
From source file:org.sakaiproject.iclicker.tool.ToolController.java
public void processInstructorSSO(PageContext pageContext, HttpServletRequest request) { // admin/instructor check if (!this.isAdmin() && !this.isInstructor()) { throw new SecurityException("Current user is not an instructor and cannot access the instructor view"); }/*from www . ja v a 2 s . c o m*/ // SSO handling boolean ssoEnabled = logic.isSingleSignOnEnabled(); pageContext.setAttribute("ssoEnabled", ssoEnabled); if (ssoEnabled) { String userKey = null; if ("POST".equalsIgnoreCase(request.getMethod())) { if ((request.getParameter("generateKey") != null)) { userKey = logic.makeUserKey(null, true); ToolController.addMessage(pageContext, ToolController.KEY_INFO, "inst.sso.generated.new.key", (Object[]) null); } } if (userKey == null) { userKey = logic.makeUserKey(null, false); } pageContext.setAttribute("ssoUserKey", userKey); } }
From source file:org.sakaiproject.iclicker.tool.ToolController.java
public void processAdmin(PageContext pageContext, HttpServletRequest request) { // admin check if (!this.isAdmin()) { throw new SecurityException("Current user is not an admin and cannot access the admin view"); }/*w w w. j a v a 2 s .c o m*/ int pageNum = 1; int perPageNum = 20; // does not change if ((request.getParameter("page") != null)) { try { pageNum = Integer.parseInt(request.getParameter("page")); if (pageNum < 1) { pageNum = 1; } } catch (NumberFormatException e) { // nothing to do System.err.println("WARN: invalid page number: " + request.getParameter("page") + ":" + e); } } pageContext.setAttribute("page", pageNum); pageContext.setAttribute("perPage", perPageNum); String sort = "clickerId"; if ((request.getParameter("sort") != null)) { sort = request.getParameter("sort"); } pageContext.setAttribute("sort", sort); if ("POST".equalsIgnoreCase(request.getMethod())) { if ((request.getParameter("activate") != null)) { // First arrived at this page boolean activate = Boolean.parseBoolean(request.getParameter("activate")); if ((request.getParameter("registrationId") == null)) { ToolController.addMessage(pageContext, ToolController.KEY_ERROR, "reg.activate.registrationId.empty", (Object[]) null); } else { try { Long registrationId = Long.parseLong(request.getParameter("registrationId")); // save a new clicker registration ClickerRegistration cr = this.getLogic().setRegistrationActive(registrationId, activate); if (cr != null) { ToolController.addMessage(pageContext, ToolController.KEY_INFO, "admin.activate.success." + cr.isActivated(), cr.getClickerId(), this.getLogic().getUserDisplayName(cr.getOwnerId())); } } catch (NumberFormatException e) { ToolController.addMessage(pageContext, ToolController.KEY_ERROR, "reg.activate.registrationId.nonnumeric", request.getParameter("registrationId")); } } } else if ((request.getParameter("remove") != null)) { if ((request.getParameter("registrationId") == null)) { ToolController.addMessage(pageContext, ToolController.KEY_ERROR, "reg.activate.registrationId.empty", (Object[]) null); } else { try { Long registrationId = Long.parseLong(request.getParameter("registrationId")); ClickerRegistration cr = this.getLogic().getItemById(registrationId); if (cr != null) { this.getLogic().removeItem(cr); ToolController.addMessage(pageContext, ToolController.KEY_INFO, "admin.delete.success", cr.getClickerId(), registrationId, this.getLogic().getUserDisplayName(cr.getOwnerId())); } } catch (NumberFormatException e) { ToolController.addMessage(pageContext, ToolController.KEY_ERROR, "reg.activate.registrationId.nonnumeric", request.getParameter("registrationId")); } } } else if ((request.getParameter("runner") != null)) { // initiate the runner process String runnerType; if ((request.getParameter("addAll") != null)) { runnerType = BigRunner.RUNNER_TYPE_ADD; } else if ((request.getParameter("removeAll") != null)) { runnerType = BigRunner.RUNNER_TYPE_REMOVE; } else if ((request.getParameter("syncAll") != null)) { runnerType = BigRunner.RUNNER_TYPE_SYNC; } else { throw new IllegalArgumentException("Invalid request type: missing valid parameter"); } try { logic.startRunnerOperation(runnerType); String msgKey = "admin.process.message." + runnerType; ToolController.addMessage(pageContext, ToolController.KEY_INFO, msgKey, (Object[]) null); } catch (ClickerLockException e) { ToolController.addMessage(pageContext, ToolController.KEY_ERROR, "admin.process.message.locked", runnerType); } catch (IllegalStateException e) { ToolController.addMessage(pageContext, ToolController.KEY_ERROR, "admin.process.message.locked", runnerType); } } else { // invalid POST System.err .println("WARN: Invalid POST: does not contain runner, remove, or activate, nothing to do"); } } // put config data into page pageContext.setAttribute("ssoEnabled", logic.isSingleSignOnEnabled()); if (logic.isSingleSignOnEnabled()) { pageContext.setAttribute("ssoSharedKey", logic.getSharedKey()); } pageContext.setAttribute("domainURL", logic.domainURL); pageContext.setAttribute("workspacePageTitle", logic.workspacePageTitle); // put error data into page pageContext.setAttribute("recentFailures", logic.getFailures()); // put runner status in page makeRunnerStatus(pageContext, true); // handling the calcs for paging int first = (pageNum - 1) * perPageNum; int totalCount = this.getLogic().countAllItems(); int pageCount = (totalCount + perPageNum - 1) / perPageNum; pageContext.setAttribute("totalCount", totalCount); pageContext.setAttribute("pageCount", pageCount); pageContext.setAttribute("registrations", this.getLogic().getAllItems(first, perPageNum, sort, null, true)); if (totalCount > 0) { StringBuilder sb = new StringBuilder(); Date d = new Date(); for (int i = 0; i < pageCount; i++) { int currentPage = i + 1; int currentStart = (i * perPageNum) + 1; int currentEnd = currentStart + perPageNum - 1; if (currentEnd > totalCount) { currentEnd = totalCount; } String marker = "[" + currentStart + ".." + currentEnd + "]"; if (currentPage == pageNum) { // make it bold and not a link sb.append("<span class=\"paging_current paging_item\">").append(marker).append("</span>\n"); } else { // make it a link sb.append("<a class=\"paging_link paging_item\" href=\"") .append(pageContext.findAttribute("adminPath")).append("&page=").append(currentPage) .append("&sort=").append(sort).append("&nc=").append(d.getTime() + currentPage) .append("\">").append(marker).append("</a>\n"); } } pageContext.setAttribute("pagerHTML", sb.toString()); } }
From source file:jp.terasoluna.fw.web.struts.taglib.PageLinksTag.java
/** * y?[WReLXg?AwKEYtO??B/*from ww w . ja va 2 s . c o m*/ * ?A?keynull???AIllegalArgumentException??B * * @param pageContext y?[WReLXg * @param key FLG?KEY */ protected void setPageContextFlg(PageContext pageContext, String key) { //y?[WReLXgtO?B pageContext.setAttribute(key, Boolean.valueOf(true)); }
From source file:org.apache.jsp.view.ask_jsp.java
public void _jspService(HttpServletRequest request, HttpServletResponse response) throws java.io.IOException, ServletException { PageContext pageContext = null; HttpSession session = null;/* www . jav a2 s .c om*/ ServletContext application = null; ServletConfig config = null; JspWriter out = null; Object page = this; JspWriter _jspx_out = null; PageContext _jspx_page_context = null; try { response.setContentType("text/html; charset=UTF-8"); pageContext = _jspxFactory.getPageContext(this, request, response, null, true, 8192, true); _jspx_page_context = pageContext; application = pageContext.getServletContext(); config = pageContext.getServletConfig(); session = pageContext.getSession(); out = pageContext.getOut(); _jspx_out = out; out.write('\r'); out.write('\n'); out.write("\r\n"); out.write("\r\n"); out.write("\r\n"); out.write("\r\n"); String contextPath = (String) request.getContextPath(); pageContext.setAttribute("contextPath", contextPath); out.write("\r\n"); out.write("\r\n"); out.write(" "); out.write("\r\n"); out.write( "<!DOCTYPE html PUBLIC \"-//W3C//DTD HTML 4.01 Transitional//EN\" \"http://www.w3.org/TR/html4/loose.dtd\">\r\n"); out.write("\r\n"); out.write("<html> \r\n"); out.write("<head> \r\n"); out.write(" <title>ask - youxifan</title> \r\n"); out.write( " <script type=\"text/javascript\" src=\"http://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js\"></script>\r\n"); out.write( " <script type=\"text/javascript\" src=\"http://cdn.sstatic.net/js/stub.js?v=c014461b9109\"></script>\r\n"); out.write(" <link rel=\"stylesheet\" type=\"text/css\" href=\""); out.print(contextPath); out.write("/css/all.css\">\r\n"); out.write("\r\n"); out.write("</head>\r\n"); out.write("<body class=\"questions-page\">\r\n"); out.write(" <noscript><div id=\"noscript-padding\"></div></noscript>\r\n"); out.write(" <div id=\"notify-container\"></div>\r\n"); out.write(" <div id=\"overlay-header\"></div>\r\n"); out.write(" <div id=\"custom-header\"></div>\r\n"); out.write("\r\n"); out.write(" <div class=\"container\">\r\n"); out.write(" "); out.write("\r\n"); out.write("\t\r\n"); out.write("\t\r\n"); out.write("\t\t<div id=\"header\">\r\n"); out.write(" <div id=\"topbar\"> \r\n"); out.write(" </div> \r\n"); out.write(" <div id=\"hmenus\">\r\n"); out.write(" <div class=\"nav mainnavs\">\r\n"); out.write(" <ul>\r\n"); out.write(" <li class=\"youarehere\"><a id=\"nav-questions\" href=\""); out.print(contextPath); out.write("/s/doc\"></a></li>\r\n"); out.write(" <li><a id=\"nav-tags\" href=\"/tags\">Tags</a></li>\r\n"); out.write(" <li><a id=\"nav-users\" href=\"/users\">Users</a></li>\r\n"); out.write(" <li><a id=\"nav-badges\" href=\"/badges\">Badges</a></li>\r\n"); out.write( " <li><a id=\"nav-unanswered\" href=\"/unanswered\">Unanswered</a></li>\r\n"); out.write(" </ul>\r\n"); out.write(" </div>\r\n"); out.write(" \r\n"); out.write(" </div>\r\n"); out.write(" </div>"); out.write("\r\n"); out.write("\r\n"); out.write("\t\t<div id=\"content\">\r\n"); out.write("\t\t\t\r\n"); out.write("\t <div id=\"mainbar\" class=\"ask-mainbar\"> \r\n"); out.write("\t \t\r\n"); out.write("\t \t<div class=\"subheader\">\r\n"); out.write("\t\t\t\t\t<h1>??</h1>\r\n"); out.write("\t\t\t\t</div> \r\n"); out.write("\t\t\t\t\r\n"); out.write("\t \t\t<form id=\"post-form\" class=\"post-form\" action=\""); out.print(contextPath); out.write("/s/doc\" method=\"post\">\r\n"); out.write("\t \t\t<input type=\"hidden\" name=\"doctype\" value=\"1\" />\r\n"); out.write("\t \t\t<label ></label><br/>\r\n"); out.write( "\t \t\t<input id=\"title\" name=\"title\" type=\"text\" maxlength=\"300\" tabindex=\"100\" class=\"ask-title-field\" value=\"\"><br/>\r\n"); out.write("\t \t\t<label ></label><br/>\r\n"); out.write( "\t \t\t<textarea id=\"wmd-input\" class=\"wmd-input\" name=\"post-text\" cols=\"92\" rows=\"15\" tabindex=\"101\">\r\n"); out.write("\t\t\t\t\t</textarea>\r\n"); out.write("\t \t\t\r\n"); out.write("\t \t\t\r\n"); out.write("\t \t\t<div class=\"form-item\">\r\n"); out.write("\t \t\t\t<label>Tags</label> \r\n"); out.write( "\t \t\t\t<input id=\"tagnames\" name=\"tagnames\" type=\"text\" size=\"60\" value=\"\" tabindex=\"103\">\r\n"); out.write( "\t \t\t\t<span class=\"edit-field-overlay\">at least one tag such as (c++ sql-server c), max 5 tags</span>\r\n"); out.write("\t \t\t</div>\r\n"); out.write("\t \t\t\r\n"); out.write("\t \t\t<div class=\"form-submit cbt\">\r\n"); out.write( "\t \t\t<input id=\"submit-button\" type=\"submit\" value=\"??\" tabindex=\"120\">\r\n"); out.write("\t \t\t</div>\r\n"); out.write("\t \t</form>\r\n"); out.write("\t </div> \r\n"); out.write("\t \r\n"); out.write("\r\n"); out.write("\t \r\n"); out.write("\t\t\t<div id=\"sidebar\" class=\"ask-sidebar\">\r\n"); out.write("\t\t\t\t<div class=\"module\" id=\"questions-count\">\r\n"); out.write("\t\t\t\t\t<div class=\"summarycount al\">305</div>\r\n"); out.write("\t\t\t\t\t<p>questions</p>\r\n"); out.write("\t\t\t\t</div> \r\n"); out.write("\t\t\t\t<div class=\"everyonelovesstackoverflow\" id=\"adzerk2\">\r\n"); out.write("\t\t\t\t</div> \r\n"); out.write("\r\n"); out.write("\t\t\t\t<div class=\"module\" id=\"related-tags\">\r\n"); out.write("\t\t\t\t\t<h4 id=\"h-related-tags\">Related Tags</h4>\r\n"); out.write( "\t\t\t\t\t<a href=\"/questions/tagged/android\" class=\"post-tag\" title=\"show questions tagged 'android'\" rel=\"tag\"><img src=\"http://cdn.sstatic.net/img/hosted/tKsDb.png\" height=\"16\" width=\"18\" alt=\"\" class=\"sponsor-tag-img\">android</a><span class=\"item-multiplier\"><span class=\"item-multiplier-x\">×</span> <span class=\"item-multiplier-count\">42</span></span> <br>\r\n"); out.write("\t\t\t\t\r\n"); out.write( "\t\t\t\t\t<a href=\"/questions/tagged/c%23\" class=\"post-tag\" title=\"show questions tagged 'c#'\" rel=\"tag\">c#</a><span class=\"item-multiplier\"><span class=\"item-multiplier-x\">×</span> <span class=\"item-multiplier-count\">27</span></span> <br>\r\n"); out.write("\t\t\t\t\r\n"); out.write( "\t\t\t\t\t<a href=\"/questions/tagged/javascript\" class=\"post-tag\" title=\"show questions tagged 'javascript'\" rel=\"tag\">javascript</a><span class=\"item-multiplier\"><span class=\"item-multiplier-x\">×</span> <span class=\"item-multiplier-count\">25</span></span> <br>\r\n"); out.write("\t\t\t\t\r\n"); out.write( "\t\t\t\t\t<a href=\"/questions/tagged/java\" class=\"post-tag\" title=\"show questions tagged 'java'\" rel=\"tag\">java</a><span class=\"item-multiplier\"><span class=\"item-multiplier-x\">×</span> <span class=\"item-multiplier-count\">24</span></span> <br> \r\n"); out.write("\t\t\t\t</div>\r\n"); out.write("\t\t\t</div>\r\n"); out.write("\r\n"); out.write("\t\t</div>\r\n"); out.write(" </div>\r\n"); out.write(" <div id=\"footer\">\r\n"); out.write(" <div class=\"footerwrap\">\r\n"); out.write(" <div id=\"footer-menu\">\r\n"); out.write(" <a href=\"/about\">about</a> |\r\n"); out.write( " <a href=\"/faq\">faq</a> | <a href=\"http://blog.stackexchange.com?blt=1\">blog</a> |\r\n"); out.write(" <a href=\"http://chat.stackoverflow.com\">chat</a> |\r\n"); out.write(" <a href=\"http://data.stackexchange.com\">data</a> |\r\n"); out.write( " <a href=\"http://blog.stackoverflow.com/category/podcasts/\">podcast</a> |\r\n"); out.write(" <a href=\"http://shop.stackexchange.com/\">shop</a> |\r\n"); out.write(" <a href=\"http://stackexchange.com/legal\">legal</a>\r\n"); out.write(" <div id=\"footer-sites\">\r\n"); out.write(" \r\n"); out.write( " <span style=\"color:#FE7A15;font-size:140%\">■</span> <a href=\"http://stackoverflow.com\">stackoverflow.com</a> \r\n"); out.write( " <span style=\"color:#FE7A15;font-size:140%\">■</span> <a href=\"http://stackapps.com\">api/apps</a> \r\n"); out.write( " <span style=\"color:#FE7A15;font-size:140%\">■</span> <a href=\"http://careers.stackoverflow.com\">careers</a> \r\n"); out.write( " <span style=\"color:#E8272C;font-size:140%\">■</span> <a href=\"http://serverfault.com\">serverfault.com</a> \r\n"); out.write( " <span style=\"color:#00AFEF;font-size:140%\">■</span> <a href=\"http://superuser.com\">superuser.com</a> \r\n"); out.write( " <span style=\"color:#969696;font-size:140%\">■</span> <a href=\"http://meta.stackoverflow.com\">meta</a> \r\n"); out.write( " <span style=\"color:#46937D;font-size:140%\">■</span> <a href=\"http://area51.stackexchange.com\">area 51</a> \r\n"); out.write( " <span style=\"color:#C0D0DC;font-size:140%\">■</span> <a href=\"http://webapps.stackexchange.com\">webapps</a> \r\n"); out.write(" <span style=\"color:#000000;font-size:140%\">■</span>\r\n"); out.write(" </div>\r\n"); out.write(" </div>\r\n"); out.write(" <div id=\"footer-flair\">\r\n"); out.write(" <a class=\"peer1\" href=\"http://www.peer1.com/stackoverflow\"></a> \r\n"); out.write( " <a href=\"http://creativecommons.org/licenses/by-sa/3.0/\" class=\"cc-wiki-link\"></a>\r\n"); out.write(" <div id=\"svnrev\">rev 2012.3.7.1488</div>\r\n"); out.write(" </div>\r\n"); out.write(" <div id=\"copyright\">\r\n"); out.write(" site design / logo © 2012 stack exchange inc; \r\n"); out.write( " user contributions licensed under <a href=\"http://creativecommons.org/licenses/by-sa/3.0/\" rel=\"license\">cc-wiki</a> with <a href=\"http://blog.stackoverflow.com/2009/06/attribution-required/\" rel=\"license\">attribution required</a>\r\n"); out.write(" </div>\r\n"); out.write(" </div>\r\n"); out.write(" </div>\r\n"); out.write("</body>\r\n"); out.write("</html>"); } catch (Throwable t) { if (!(t instanceof SkipPageException)) { out = _jspx_out; if (out != null && out.getBufferSize() != 0) try { out.clearBuffer(); } catch (java.io.IOException e) { } if (_jspx_page_context != null) _jspx_page_context.handlePageException(t); } } finally { _jspxFactory.releasePageContext(_jspx_page_context); } }
From source file:org.apache.jsp.view.doclist_jsp.java
public void _jspService(HttpServletRequest request, HttpServletResponse response) throws java.io.IOException, ServletException { PageContext pageContext = null; HttpSession session = null;//from w w w . j a v a2s . c o m ServletContext application = null; ServletConfig config = null; JspWriter out = null; Object page = this; JspWriter _jspx_out = null; PageContext _jspx_page_context = null; try { response.setContentType("text/html; charset=UTF-8"); pageContext = _jspxFactory.getPageContext(this, request, response, null, true, 8192, true); _jspx_page_context = pageContext; application = pageContext.getServletContext(); config = pageContext.getServletConfig(); session = pageContext.getSession(); out = pageContext.getOut(); _jspx_out = out; out.write('\r'); out.write('\n'); out.write("\r\n"); out.write("\r\n"); out.write("\r\n"); out.write("\r\n"); String contextPath = (String) request.getContextPath(); pageContext.setAttribute("contextPath", contextPath); out.write("\r\n"); out.write("\r\n"); out.write(" "); out.write("\r\n"); out.write( "<!DOCTYPE html PUBLIC \"-//W3C//DTD HTML 4.01 Transitional//EN\" \"http://www.w3.org/TR/html4/loose.dtd\">\r\n"); out.write("\r\n"); out.write("<html> \r\n"); out.write("<head> \r\n"); out.write(" <title>Bounty Questions - Stack Overflow</title> \r\n"); out.write( " <script type=\"text/javascript\" src=\"http://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js\"></script>\r\n"); out.write( " <script type=\"text/javascript\" src=\"http://cdn.sstatic.net/js/stub.js?v=c014461b9109\"></script>\r\n"); out.write(" <link rel=\"stylesheet\" type=\"text/css\" href=\""); out.print(contextPath); out.write("/css/all.css\">\r\n"); String sort = (String) request.getAttribute("sort"); if (StringUtils.isEmpty(sort)) { sort = "newest"; } out.write("\r\n"); out.write("</head>\r\n"); out.write("<body class=\"questions-page\">\r\n"); out.write(" <noscript><div id=\"noscript-padding\"></div></noscript>\r\n"); out.write(" <div id=\"notify-container\"></div>\r\n"); out.write(" <div id=\"overlay-header\"></div>\r\n"); out.write(" <div id=\"custom-header\"></div>\r\n"); out.write("\r\n"); out.write(" <div class=\"container\">\r\n"); out.write(" "); out.write("\r\n"); out.write("\t\r\n"); out.write("\t\r\n"); out.write("\t\t<div id=\"header\">\r\n"); out.write(" <div id=\"topbar\"> \r\n"); out.write(" </div> \r\n"); out.write(" <div id=\"hmenus\">\r\n"); out.write(" <div class=\"nav mainnavs\">\r\n"); out.write(" <ul>\r\n"); out.write(" <li class=\"youarehere\"><a id=\"nav-questions\" href=\""); out.print(contextPath); out.write("/s/doc\"></a></li>\r\n"); out.write(" <li><a id=\"nav-tags\" href=\"/tags\">Tags</a></li>\r\n"); out.write(" <li><a id=\"nav-users\" href=\"/users\">Users</a></li>\r\n"); out.write(" <li><a id=\"nav-badges\" href=\"/badges\">Badges</a></li>\r\n"); out.write( " <li><a id=\"nav-unanswered\" href=\"/unanswered\">Unanswered</a></li>\r\n"); out.write(" </ul>\r\n"); out.write(" </div>\r\n"); out.write(" \r\n"); out.write(" </div>\r\n"); out.write(" </div>"); out.write("\r\n"); out.write("\r\n"); out.write(" <div id=\"content\">\r\n"); out.write(" \r\n"); out.write(" <div id=\"mainbar\"> \r\n"); out.write("\t\t\t\t<div class=\"subheader\">\r\n"); out.write("\t\t\t\t\t<div id=\"tabs\">\r\n"); out.write("<a "); out.print("newest".equals(sort) ? "class=\"youarehere\"" : ""); out.write( " href=\"/questions?sort=newest\" title=\"the most recently asked questions\"></a>\r\n"); out.write("<a "); out.print("featured".equals(sort) ? "class=\"youarehere\"" : ""); out.write(" href=\"/questions?sort=featured\" title=\"questions with open bounties\"></a>\r\n"); out.write("<a "); out.print("unanswered".equals(sort) ? "class=\"youarehere\"" : ""); out.write(" href=\"/questions?sort=faq\" title=\"questions with the most links\"></a>\r\n"); out.write("<a "); out.print("votes".equals(sort) ? "class=\"youarehere\"" : ""); out.write(" href=\"/questions?sort=votes\" title=\"questions with the most votes\">?</a>\r\n"); out.write("<a "); out.print("active".equals(sort) ? "class=\"youarehere\"" : ""); out.write( " href=\"/questions?sort=active\" title=\"questions that have recent activity\">active</a>\r\n"); out.write("<a "); out.print("question".equals(sort) ? "class=\"youarehere\"" : ""); out.write(" href=\""); out.print(contextPath); out.write("/view/ask.jsp\" title=\"??\">??</a>\r\n"); out.write("\t\t\t\t\t</div> \r\n"); out.write("\t\t\t\t\t<h1 id=\"h-all-questions\"></h1> \r\n"); out.write("\t\t\t\t\t\r\n"); out.write("\t\t\t\t</div> \r\n"); out.write("\t\t\t\t\r\n"); out.write("\t\t\t\t<div id=\"questions\">\r\n"); // c:forEach org.apache.taglibs.standard.tag.rt.core.ForEachTag _jspx_th_c_005fforEach_005f0 = (org.apache.taglibs.standard.tag.rt.core.ForEachTag) _005fjspx_005ftagPool_005fc_005fforEach_0026_005fvar_005fitems .get(org.apache.taglibs.standard.tag.rt.core.ForEachTag.class); _jspx_th_c_005fforEach_005f0.setPageContext(_jspx_page_context); _jspx_th_c_005fforEach_005f0.setParent(null); // /view/doclist.jsp(46,0) name = items type = javax.el.ValueExpression reqTime = true required = false fragment = false deferredValue = true expectedTypeName = java.lang.Object deferredMethod = false methodSignature = null _jspx_th_c_005fforEach_005f0 .setItems(new org.apache.jasper.el.JspValueExpression("/view/doclist.jsp(46,0) '${doclist}'", _el_expressionfactory.createValueExpression(_jspx_page_context.getELContext(), "${doclist}", java.lang.Object.class)) .getValue(_jspx_page_context.getELContext())); // /view/doclist.jsp(46,0) name = var type = java.lang.String reqTime = false required = false fragment = false deferredValue = false expectedTypeName = null deferredMethod = false methodSignature = null _jspx_th_c_005fforEach_005f0.setVar("doc"); int[] _jspx_push_body_count_c_005fforEach_005f0 = new int[] { 0 }; try { int _jspx_eval_c_005fforEach_005f0 = _jspx_th_c_005fforEach_005f0.doStartTag(); if (_jspx_eval_c_005fforEach_005f0 != javax.servlet.jsp.tagext.Tag.SKIP_BODY) { do { out.write("\r\n"); out.write("\r\n"); out.write("\t\t\t\t\t<div class=\"question-summary\" id=\"question-summary-"); out.write((java.lang.String) org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate( "${doc.docid}", java.lang.String.class, (PageContext) _jspx_page_context, null, false)); out.write("\">\r\n"); out.write("\t\t\t\t\t\t<div class=\"statscontainer\">\r\n"); out.write("\t\t\t\t\t\t\t<div class=\"statsarrow\"></div>\r\n"); out.write("\t\t\t\t\t\t\t<div class=\"stats\">\r\n"); out.write("\t\t\t\t\t\t\t\t<div class=\"vote\">\r\n"); out.write("\t\t\t\t\t\t\t\t\t<div class=\"votes\">\r\n"); out.write( "\t\t\t\t\t\t\t\t\t\t<span class=\"vote-count-post\"><strong>6</strong></span>\r\n"); out.write("\t\t\t\t\t\t\t\t\t\t<div class=\"viewcount\">votes</div>\r\n"); out.write("\t\t\t\t\t\t\t\t\t</div>\r\n"); out.write("\t\t\t\t\t\t\t\t</div>\r\n"); out.write("\t\t\t\t\t\t\t\t<div class=\"status answered\">\r\n"); out.write("\t\t\t\t\t\t\t\t\t<strong>3</strong>answers\r\n"); out.write("\t\t\t\t\t\t\t\t</div>\r\n"); out.write("\t\t\t\t\t\t\t\t<div class=\"views\" title=\"188 views\">188 views</div>\r\n"); out.write("\t\t\t\t\t\t\t</div>\t\t\t\t\t\t\t\r\n"); out.write("\t\t\t\t\t\t</div>\r\n"); out.write("\t\t\t\t\t\t<div class=\"summary\"> \r\n"); out.write("\t\t\t\t\t\t\t<h3><a href=\""); out.print(contextPath); out.write("/s/doc/id/"); out.write((java.lang.String) org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate( "${doc.docid}", java.lang.String.class, (PageContext) _jspx_page_context, null, false)); out.write("\" class=\"question-hyperlink\">"); out.write((java.lang.String) org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate( "${doc.title}", java.lang.String.class, (PageContext) _jspx_page_context, null, false)); out.write("</a></h3>\r\n"); out.write("\t\t\t\t\t\t\t<div class=\"excerpt\">\r\n"); out.write("\t\t\t\t\t\t\t\t"); out.write((java.lang.String) org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate( "${doc.content}", java.lang.String.class, (PageContext) _jspx_page_context, null, false)); out.write("\t \r\n"); out.write("\t\t\t\t\t\t\t</div>\r\n"); out.write("\t\t\t\t\t\t\t<div class=\"tags t-android t-webview t-textview\">\r\n"); out.write( "\t\t\t\t\t\t\t\t<a href=\"/questions/tagged/android\" class=\"post-tag\" title=\"show questions tagged 'android'\" rel=\"tag\">\r\n"); out.write( "\t\t\t\t\t\t\t\t\t<img src=\"http://cdn.sstatic.net/img/hosted/tKsDb.png\" height=\"16\" width=\"18\" alt=\"\" class=\"sponsor-tag-img\">android</a> \r\n"); out.write( "\t\t\t\t\t\t\t\t<a href=\"/questions/tagged/webview\" class=\"post-tag\" title=\"show questions tagged 'webview'\" rel=\"tag\">webview</a> \r\n"); out.write( "\t\t\t\t\t\t\t\t<a href=\"/questions/tagged/textview\" class=\"post-tag\" title=\"show questions tagged 'textview'\" rel=\"tag\">textview</a> \r\n"); out.write("\r\n"); out.write("\t\t\t\t\t\t\t</div>\r\n"); out.write("\t\t\t\t\t\t\t<div class=\"started fr\">\r\n"); out.write("\t\t\t\t\t\t\t\t<div class=\"user-info\"> \r\n"); out.write("\t\t\t\t\t\t\t\t\t<div class=\"user-gravatar32\">\r\n"); out.write("\t\t\t\t\t\t\t\t\t\t<a href=\"/users/565319/richard\">\r\n"); out.write("\t\t\t\t\t\t\t\t\t\t\t<div class=\"\"><img src=\""); out.write((java.lang.String) org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate( "${pageScope.contextPath}", java.lang.String.class, (PageContext) _jspx_page_context, null, false)); out.write('/'); out.write((java.lang.String) org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate( "${doc.creater.imageurl}", java.lang.String.class, (PageContext) _jspx_page_context, null, false)); out.write("\" alt=\"\" width=\"32\" height=\"32\"></div>\r\n"); out.write("\t\t\t\t\t\t\t\t\t\t</a>\r\n"); out.write("\t\t\t\t\t\t\t\t\t</div>\r\n"); out.write("\t\t\t\t\t\t\t\t\t<div class=\"user-details\">\r\n"); out.write("\t\t\t\t\t\t\t\t\t\t<a href=\"/users/"); out.write((java.lang.String) org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate( "${doc.creater.userid}", java.lang.String.class, (PageContext) _jspx_page_context, null, false)); out.write('"'); out.write('>'); out.write((java.lang.String) org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate( "${doc.creater.username}", java.lang.String.class, (PageContext) _jspx_page_context, null, false)); out.write("</a><br>\r\n"); out.write( "\t\t\t\t\t\t\t\t\t\t\t<span class=\"reputation-score\" title=\"reputation score\" dir=\"ltr\">296</span>\r\n"); out.write("\t\t\t\t\t\t\t\t\t\t\t<span title=\"1 silver badge\">\r\n"); out.write("\t\t\t\t\t\t\t\t\t\t\t\t<span class=\"badge2\"></span>\r\n"); out.write("\t\t\t\t\t\t\t\t\t\t\t\t<span class=\"badgecount\">1</span>\r\n"); out.write("\t\t\t\t\t\t\t\t\t\t\t</span>\r\n"); out.write("\t\t\t\t\t\t\t\t\t\t\t<span title=\"13 bronze badges\">\r\n"); out.write("\t\t\t\t\t\t\t\t\t\t\t\t<span class=\"badge3\"></span>\r\n"); out.write("\t\t\t\t\t\t\t\t\t\t\t\t<span class=\"badgecount\">13</span>\r\n"); out.write("\t\t\t\t\t\t\t\t\t\t\t</span>\r\n"); out.write("\t\t\t\t\t\t\t\t\t\t</div>\r\n"); out.write("\t\t\t\t\t\t\t\t\t</div>\r\n"); out.write( "\t\t\t\t\t\t\t\t\t<div class=\"user-action-time\">asked <span title=\"\" class=\"relativetime\">"); out.write((java.lang.String) org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate( "${doc.createdate}", java.lang.String.class, (PageContext) _jspx_page_context, null, false)); out.write("</span></div>\r\n"); out.write("\t\t\t\t\t\t\t</div> \r\n"); out.write("\t\t\t\t\t\t</div>\r\n"); out.write("\t\t\t\t\t</div>\r\n"); int evalDoAfterBody = _jspx_th_c_005fforEach_005f0.doAfterBody(); if (evalDoAfterBody != javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN) break; } while (true); } if (_jspx_th_c_005fforEach_005f0.doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE) { return; } } catch (Throwable _jspx_exception) { while (_jspx_push_body_count_c_005fforEach_005f0[0]-- > 0) out = _jspx_page_context.popBody(); _jspx_th_c_005fforEach_005f0.doCatch(_jspx_exception); } finally { _jspx_th_c_005fforEach_005f0.doFinally(); _005fjspx_005ftagPool_005fc_005fforEach_0026_005fvar_005fitems.reuse(_jspx_th_c_005fforEach_005f0); } out.write("\r\n"); out.write("\t\t\t\t</div>\r\n"); out.write("\t\t\t\t<br class=\"cbt\">\r\n"); out.write("\t\t\t\t<div class=\"page-sizer fr\">\r\n"); out.write( "\t\t\t\t\t<a href=\"/questions?sort=featured&pagesize=15\" title=\"show 15 items per page\" class=\"current page-numbers\">15</a>\r\n"); out.write( "\t\t\t\t\t<a href=\"/questions?sort=featured&pagesize=30\" title=\"show 30 items per page\" class=\"page-numbers\">30</a>\r\n"); out.write( "\t\t\t\t\t<a href=\"/questions?sort=featured&pagesize=50\" title=\"show 50 items per page\" class=\"page-numbers\">50</a>\r\n"); out.write("\t\t\t\t\t<span class=\"page-numbers desc\">per page</span>\r\n"); out.write("\t\t\t\t</div>\r\n"); out.write("\t\t\t\t<div class=\"pager fl\" >\r\n"); out.write("\t\t\t\t\t<span class=\"page-numbers current\">1</span>\r\n"); out.write( "\t\t\t\t\t<a href=\"/questions?page=2&sort=featured\" title=\"go to page 2\"><span class=\"page-numbers\">2</span></a>\r\n"); out.write( "\t\t\t\t\t<a href=\"/questions?page=3&sort=featured\" title=\"go to page 3\"><span class=\"page-numbers\">3</span></a>\r\n"); out.write( "\t\t\t\t\t<a href=\"/questions?page=4&sort=featured\" title=\"go to page 4\"><span class=\"page-numbers\">4</span></a>\r\n"); out.write( "\t\t\t\t\t<a href=\"/questions?page=5&sort=featured\" title=\"go to page 5\"><span class=\"page-numbers\">5</span></a>\r\n"); out.write("\t\t\t\t\t<span class=\"page-numbers dots\">…</span>\r\n"); out.write( "\t\t\t\t\t<a href=\"/questions?page=21&sort=featured\" title=\"go to page 21\"><span class=\"page-numbers\">21</span></a>\r\n"); out.write( "\t\t\t\t\t<a href=\"/questions?page=2&sort=featured\" title=\"go to page 2\" rel=\"next\"><span class=\"page-numbers next\"> next</span></a>\r\n"); out.write("\t\t\t\t</div>\r\n"); out.write("\r\n"); out.write("\t\t\t</div>\r\n"); out.write("\t\t\t\r\n"); out.write("\t\t\t\r\n"); out.write("\t\t\t<div id=\"sidebar\">\r\n"); out.write("\t\t\t\t<div class=\"module\" id=\"questions-count\">\r\n"); out.write("\t\t\t\t\t<div class=\"summarycount al\">305</div>\r\n"); out.write("\t\t\t\t\t<p>questions</p>\r\n"); out.write("\t\t\t\t</div> \r\n"); out.write("\t\t\t\t<div class=\"everyonelovesstackoverflow\" id=\"adzerk2\">\r\n"); out.write("\t\t\t\t</div> \r\n"); out.write("\r\n"); out.write("\t\t\t\t<div class=\"module\" id=\"related-tags\">\r\n"); out.write("\t\t\t\t\t<h4 id=\"h-related-tags\">Related Tags</h4>\r\n"); out.write( "\t\t\t\t\t<a href=\"/questions/tagged/android\" class=\"post-tag\" title=\"show questions tagged 'android'\" rel=\"tag\"><img src=\"http://cdn.sstatic.net/img/hosted/tKsDb.png\" height=\"16\" width=\"18\" alt=\"\" class=\"sponsor-tag-img\">android</a><span class=\"item-multiplier\"><span class=\"item-multiplier-x\">×</span> <span class=\"item-multiplier-count\">42</span></span> <br>\r\n"); out.write("\t\t\t\t\r\n"); out.write( "\t\t\t\t\t<a href=\"/questions/tagged/c%23\" class=\"post-tag\" title=\"show questions tagged 'c#'\" rel=\"tag\">c#</a><span class=\"item-multiplier\"><span class=\"item-multiplier-x\">×</span> <span class=\"item-multiplier-count\">27</span></span> <br>\r\n"); out.write("\t\t\t\t\r\n"); out.write( "\t\t\t\t\t<a href=\"/questions/tagged/javascript\" class=\"post-tag\" title=\"show questions tagged 'javascript'\" rel=\"tag\">javascript</a><span class=\"item-multiplier\"><span class=\"item-multiplier-x\">×</span> <span class=\"item-multiplier-count\">25</span></span> <br>\r\n"); out.write("\t\t\t\t\r\n"); out.write( "\t\t\t\t\t<a href=\"/questions/tagged/java\" class=\"post-tag\" title=\"show questions tagged 'java'\" rel=\"tag\">java</a><span class=\"item-multiplier\"><span class=\"item-multiplier-x\">×</span> <span class=\"item-multiplier-count\">24</span></span> <br> \r\n"); out.write("\t\t\t\t</div>\r\n"); out.write("\t\t\t</div>\r\n"); out.write("\r\n"); out.write("\t\t</div>\r\n"); out.write(" </div>\r\n"); out.write(" "); out.write("\t<div id=\"footer\">\r\n"); out.write(" <div class=\"footerwrap\">\r\n"); out.write(" <div id=\"footer-menu\">\r\n"); out.write(" <a href=\"/about\">about</a> |\r\n"); out.write( " <a href=\"/faq\">faq</a> | <a href=\"http://blog.stackexchange.com?blt=1\">blog</a> |\r\n"); out.write(" <a href=\"http://chat.stackoverflow.com\">chat</a> |\r\n"); out.write(" <a href=\"http://data.stackexchange.com\">data</a> |\r\n"); out.write( " <a href=\"http://blog.stackoverflow.com/category/podcasts/\">podcast</a> |\r\n"); out.write(" <a href=\"http://shop.stackexchange.com/\">shop</a> |\r\n"); out.write(" <a href=\"http://stackexchange.com/legal\">legal</a>\r\n"); out.write(" <div id=\"footer-sites\">\r\n"); out.write(" \r\n"); out.write( " <span style=\"color:#FE7A15;font-size:140%\">■</span> <a href=\"http://stackoverflow.com\">stackoverflow.com</a> \r\n"); out.write( " <span style=\"color:#FE7A15;font-size:140%\">■</span> <a href=\"http://stackapps.com\">api/apps</a> \r\n"); out.write( " <span style=\"color:#FE7A15;font-size:140%\">■</span> <a href=\"http://careers.stackoverflow.com\">careers</a> \r\n"); out.write( " <span style=\"color:#E8272C;font-size:140%\">■</span> <a href=\"http://serverfault.com\">serverfault.com</a> \r\n"); out.write( " <span style=\"color:#00AFEF;font-size:140%\">■</span> <a href=\"http://superuser.com\">superuser.com</a> \r\n"); out.write( " <span style=\"color:#969696;font-size:140%\">■</span> <a href=\"http://meta.stackoverflow.com\">meta</a> \r\n"); out.write( " <span style=\"color:#46937D;font-size:140%\">■</span> <a href=\"http://area51.stackexchange.com\">area 51</a> \r\n"); out.write( " <span style=\"color:#C0D0DC;font-size:140%\">■</span> <a href=\"http://webapps.stackexchange.com\">webapps</a> \r\n"); out.write(" <span style=\"color:#000000;font-size:140%\">■</span>\r\n"); out.write(" </div>\r\n"); out.write(" </div>\r\n"); out.write(" <div id=\"footer-flair\">\r\n"); out.write(" <a class=\"peer1\" href=\"http://www.peer1.com/stackoverflow\"></a> \r\n"); out.write( " <a href=\"http://creativecommons.org/licenses/by-sa/3.0/\" class=\"cc-wiki-link\"></a>\r\n"); out.write(" <div id=\"svnrev\">rev 2012.3.7.1488</div>\r\n"); out.write(" </div>\r\n"); out.write(" <div id=\"copyright\">\r\n"); out.write(" site design / logo © 2012 stack exchange inc; \r\n"); out.write( " user contributions licensed under <a href=\"http://creativecommons.org/licenses/by-sa/3.0/\" rel=\"license\">cc-wiki</a> with <a href=\"http://blog.stackoverflow.com/2009/06/attribution-required/\" rel=\"license\">attribution required</a>\r\n"); out.write(" </div>\r\n"); out.write(" </div>\r\n"); out.write(" </div>"); out.write("\r\n"); out.write("</body>\r\n"); out.write("</html>"); } catch (Throwable t) { if (!(t instanceof SkipPageException)) { out = _jspx_out; if (out != null && out.getBufferSize() != 0) try { out.clearBuffer(); } catch (java.io.IOException e) { } if (_jspx_page_context != null) _jspx_page_context.handlePageException(t); } } finally { _jspxFactory.releasePageContext(_jspx_page_context); } }
From source file:org.qifu.ui.UIComponentValueUtils.java
public static void putIfResult(PageContext pageContext, boolean result) { pageContext.setAttribute(UIComponent.IfResultVariableName, result); }