コード例 #1
0
 @Override
 public void doTag() throws JspException, IOException {
   addAttribute("field", field);
   addAttribute("attributeMetadata", persistentProperty);
   prepare();
   PageContext pageContext = (PageContext) getJspContext();
   try {
     pageContext.include(jspPath, true);
   } catch (ServletException e) {
     throw new JspException(e);
   } finally {
     pageContext.removeAttribute("field", REQUEST_SCOPE);
     pageContext.removeAttribute("attributeMetadata", REQUEST_SCOPE);
   }
 }
コード例 #2
0
ファイル: ChildPageContext.java プロジェクト: rrkommer/gwiki
 @Override
 public void include(String arg0, boolean flush) throws ServletException, IOException {
   if (flush == true) {
     if (internalGroovyOut != null) {
       internalGroovyOut.flush();
     }
     JspWriter swriter = getOut();
     if (swriter instanceof BodyFlusher) {
       ((BodyFlusher) swriter).flushBody();
     } else {
       // System.out.println("no bodyflusher");
     }
   }
   parentPageContext.include(arg0, flush);
 }
コード例 #3
0
ファイル: QA.java プロジェクト: ppolsinelli/JavaQA
  public void configureNeedingPageContext(PageContext pageContext) {

    // here insert from i18n
    SortedMap<String, I18n.I18nEntry> i18nGS = I18n.getEntriesForApplication("QA");
    for (String code : i18nGS.keySet()) {
      if (JSP.ex(code) && code.startsWith("GLOBALSETTINGS_")) {
        ApplicationState.applicationSettings.put(
            code.substring("GLOBALSETTINGS_".length()), i18nGS.get(code).getLabel("QA", "it"));
      }
    }

    try {
      pageContext.include("/applications/QA/settings/badges.jsp");
    } catch (Throwable e) {
      Tracer.platformLogger.error(e);
    }
  }
コード例 #4
0
 @Override
 public void print(PageContext pageContext) throws Exception {
   pageContext.include("/html/taglib/ui/search_iterator/score.jsp");
 }