if (isPoolingEnabled) {
for (int i = 0; i < tagHandlerPoolNames.size(); i++) {
out.printin(tagHandlerPoolNames.elementAt(i));
- out
- .print(" = org.apache.jasper.runtime.TagHandlerPool.getTagHandlerPool(");
+ out.print(" = org.apache.jasper.runtime.TagHandlerPool.getTagHandlerPool(");
if (ctxt.isTagFile()) {
out.print("config");
} else {
out.print(servletClassName);
out.print(" extends ");
out.println(pageInfo.getExtends());
- out
- .printin(" implements org.apache.jasper.runtime.JspSourceDependent");
+ out.printin(" implements org.apache.jasper.runtime.JspSourceDependent");
if (!pageInfo.isThreadSafe()) {
out.println(",");
out.printin(" SingleThreadModel");
// Now the service method
out.printin("public void ");
out.print(serviceMethodName);
- out
- .println("(HttpServletRequest request, HttpServletResponse response)");
+ out.println("(HttpServletRequest request, HttpServletResponse response)");
out.println(" throws java.io.IOException, ServletException {");
out.pushIndent();
out.printil("HttpSession session = null;");
if (pageInfo.isErrorPage()) {
- out
- .printil("Throwable exception = org.apache.jasper.runtime.JspRuntimeLibrary.getThrowable(request);");
+ out.printil("Throwable exception = org.apache.jasper.runtime.JspRuntimeLibrary.getThrowable(request);");
out.printil("if (exception != null) {");
out.pushIndent();
- out
- .printil("response.setStatus(HttpServletResponse.SC_INTERNAL_SERVER_ERROR);");
+ out.printil("response.setStatus(HttpServletResponse.SC_INTERNAL_SERVER_ERROR);");
out.popIndent();
out.printil("}");
}
out.printin("public final class ");
out.println(className);
out.printil(" extends javax.servlet.jsp.tagext.SimpleTagSupport");
- out
- .printin(" implements org.apache.jasper.runtime.JspSourceDependent");
+ out.printin(" implements org.apache.jasper.runtime.JspSourceDependent");
if (tagInfo.hasDynamicAttributes()) {
out.println(",");
- out
- .printin(" javax.servlet.jsp.tagext.DynamicAttributes");
+ out.printin(" javax.servlet.jsp.tagext.DynamicAttributes");
}
out.println(" {");
out.println();
/*
* Class body begins here
*/
-
generateDeclarations(tag);
// Static initializations here
genPreambleMethods();
// Now the doTag() method
- out
- .printil("public void doTag() throws JspException, java.io.IOException {");
+ out.printil("public void doTag() throws JspException, java.io.IOException {");
if (ctxt.isPrototypeMode()) {
out.printil("}");
* implicit object in tag files. Declare _jspx_page_context, so we can
* share the code generator with JSPs.
*/
- out
- .printil("PageContext _jspx_page_context = (PageContext)jspContext;");
-
+ out.printil("PageContext _jspx_page_context = (PageContext)jspContext;");
+
// Declare implicit objects.
out.printil("HttpServletRequest request = "
+ "(HttpServletRequest) _jspx_page_context.getRequest();");
out.printil("HttpServletResponse response = "
+ "(HttpServletResponse) _jspx_page_context.getResponse();");
out.printil("HttpSession session = _jspx_page_context.getSession();");
- out
- .printil("ServletContext application = _jspx_page_context.getServletContext();");
- out
- .printil("ServletConfig config = _jspx_page_context.getServletConfig();");
+ out.printil("ServletContext application = _jspx_page_context.getServletContext();");
+ out.printil("ServletConfig config = _jspx_page_context.getServletConfig();");
out.printil("JspWriter out = jspContext.getOut();");
- if (isPoolingEnabled && !tagHandlerPoolNames.isEmpty()) {
- out.printil("_jspInit(config);");
- }
+ out.printil("_jspInit(config);");
// set current JspContext on ELContext
out.printil("jspContext.getELContext().putContext(JspContext.class,jspContext);");
// we need to scope the modified VariableMapper for consistency and performance
if (!variableMapperVar) {
- out.println("javax.el.VariableMapper _el_variablemapper = jspContext.getELContext().getVariableMapper();");
+ out.printil("javax.el.VariableMapper _el_variablemapper = jspContext.getELContext().getVariableMapper();");
variableMapperVar = true;
}