org.apache.jasper.compiler.Generator.genCommonPostamble()方法的使用及代码示例

x33g5p2x  于2022-01-20 转载在 其他  
字(4.8k)|赞(0)|评价(0)|浏览(147)

本文整理了Java中org.apache.jasper.compiler.Generator.genCommonPostamble()方法的一些代码示例,展示了Generator.genCommonPostamble()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Generator.genCommonPostamble()方法的具体详情如下:
包路径:org.apache.jasper.compiler.Generator
类名称:Generator
方法名:genCommonPostamble

Generator.genCommonPostamble介绍

[英]Common part of postamble, shared by both servlets and tag files.
[中]postamble的公共部分,由servlet和标记文件共享。

代码示例

代码示例来源:origin: org.glassfish.web/jsp-impl

genCommonPostamble();

代码示例来源:origin: at.bestsolution.efxclipse.eclipse/org.apache.jasper.glassfish

genCommonPostamble();

代码示例来源:origin: org.eclipse.jetty.orbit/org.apache.jasper.glassfish

genCommonPostamble();

代码示例来源:origin: org.bluestemsoftware.open.maven.tparty/jsp-2.1

genCommonPostamble();

代码示例来源:origin: org.glassfish.web/javax.servlet.jsp

genCommonPostamble();

代码示例来源:origin: org.glassfish.web/jakarta.servlet.jsp

genCommonPostamble();

代码示例来源:origin: org.eclipse.jetty.toolchain/jetty-jsp-fragment

genCommonPostamble();

代码示例来源:origin: jboss.web/jbossweb

genCommonPostamble();

代码示例来源:origin: com.ovea.tajin.server/tajin-server-tomcat7

/**
 * Generates the ending part of the static portion of the servlet.
 */
private void generatePostamble() {
  out.popIndent();
  out.printil("} catch (java.lang.Throwable t) {");
  out.pushIndent();
  out.printil("if (!(t instanceof javax.servlet.jsp.SkipPageException)){");
  out.pushIndent();
  out.printil("out = _jspx_out;");
  out.printil("if (out != null && out.getBufferSize() != 0)");
  out.pushIndent();
  out.printil("try { out.clearBuffer(); } catch (java.io.IOException e) {}");
  out.popIndent();
  out.printil("if (_jspx_page_context != null) _jspx_page_context.handlePageException(t);");
  out.popIndent();
  out.printil("}");
  out.popIndent();
  out.printil("} finally {");
  out.pushIndent();
  out.printil("_jspxFactory.releasePageContext(_jspx_page_context);");
  out.popIndent();
  out.printil("}");
  // Close the service method
  out.popIndent();
  out.printil("}");
  // Generated methods, helper classes, etc.
  genCommonPostamble();
}

代码示例来源:origin: org.jboss.web/jbossweb

genCommonPostamble();

代码示例来源:origin: org.bluestemsoftware.open.maven.tparty/jsp-2.1

genCommonPostamble();

代码示例来源:origin: codefollower/Tomcat-Research

/**
 * Generates the ending part of the static portion of the servlet.
 */
private void generatePostamble() {
  out.popIndent();
  out.printil("} catch (java.lang.Throwable t) {");
  out.pushIndent();
  out.printil("if (!(t instanceof javax.servlet.jsp.SkipPageException)){");
  out.pushIndent();
  out.printil("out = _jspx_out;");
  out.printil("if (out != null && out.getBufferSize() != 0)");
  out.pushIndent();
  out.printil("try { out.clearBuffer(); } catch (java.io.IOException e) {}");
  out.popIndent();
  out.printil("if (_jspx_page_context != null) _jspx_page_context.handlePageException(t);");
  out.printil("else throw new ServletException(t);");
  out.popIndent();
  out.printil("}");
  out.popIndent();
  out.printil("} finally {");
  out.pushIndent();
  out.printil("_jspxFactory.releasePageContext(_jspx_page_context);");
  out.popIndent();
  out.printil("}");
  // Close the service method
  out.popIndent();
  out.printil("}");
  // Generated methods, helper classes, etc.
  genCommonPostamble();
}

代码示例来源:origin: org.apache.geronimo.ext.tomcat/jasper

/**
 * Generates the ending part of the static portion of the servlet.
 */
private void generatePostamble() {
  out.popIndent();
  out.printil("} catch (java.lang.Throwable t) {");
  out.pushIndent();
  out.printil("if (!(t instanceof javax.servlet.jsp.SkipPageException)){");
  out.pushIndent();
  out.printil("out = _jspx_out;");
  out.printil("if (out != null && out.getBufferSize() != 0)");
  out.pushIndent();
  out.printil("try { out.clearBuffer(); } catch (java.io.IOException e) {}");
  out.popIndent();
  out.printil("if (_jspx_page_context != null) _jspx_page_context.handlePageException(t);");
  out.printil("else throw new ServletException(t);");
  out.popIndent();
  out.printil("}");
  out.popIndent();
  out.printil("} finally {");
  out.pushIndent();
  out.printil("_jspxFactory.releasePageContext(_jspx_page_context);");
  out.popIndent();
  out.printil("}");
  // Close the service method
  out.popIndent();
  out.printil("}");
  // Generated methods, helper classes, etc.
  genCommonPostamble();
}

代码示例来源:origin: org.glassfish.web/javax.servlet.jsp

genCommonPostamble();

代码示例来源:origin: org.eclipse.jetty.toolchain/jetty-jsp-fragment

genCommonPostamble();

代码示例来源:origin: org.glassfish.web/jakarta.servlet.jsp

genCommonPostamble();

代码示例来源:origin: at.bestsolution.efxclipse.eclipse/org.apache.jasper.glassfish

genCommonPostamble();

代码示例来源:origin: org.jboss.web/jbossweb

genCommonPostamble();

代码示例来源:origin: org.eclipse.jetty.orbit/org.apache.jasper.glassfish

genCommonPostamble();

代码示例来源:origin: org.glassfish.web/jsp-impl

genCommonPostamble();

相关文章