package org.apache.jsp.jsp2.tagfiles; import javax.servlet.*; import javax.servlet.http.*; import javax.servlet.jsp.*; public final class hello_jsp extends org.apache.jasper.runtime.HttpJspBase implements org.apache.jasper.runtime.JspSourceDependent { private static java.util.List _jspx_dependants; static { _jspx_dependants = new java.util.ArrayList(1); _jspx_dependants.add("/WEB-INF/tags/helloWorld.tag"); } public Object getDependants() { return _jspx_dependants; } public void _jspService(HttpServletRequest request, HttpServletResponse response) throws java.io.IOException, ServletException { JspFactory _jspxFactory = null; PageContext pageContext = null; HttpSession session = null; ServletContext application = null; ServletConfig config = null; JspWriter out = null; Object page = this; JspWriter _jspx_out = null; PageContext _jspx_page_context = null; try { _jspxFactory = JspFactory.getDefaultFactory(); response.setContentType("text/html"); 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("\n\n\n \n JSP 2.0 Examples - Hello World Using a Tag File\n \n \n

JSP 2.0 Examples - Hello World Using a Tag File

\n
\n

This JSP page invokes a custom tag that simply echos \"Hello, World!\" \n"); out.write(" The custom tag is generated from a tag file in the /WEB-INF/tags\n directory.

\n

Notice that we did not need to write a TLD for this tag. We just\n created /WEB-INF/tags/helloWorld.tag, imported it using the taglib\n directive, and used it!

\n
\n Result:\n "); if (_jspx_meth_tags_005fhelloWorld_005f0(_jspx_page_context)) return; out.write("\n \n\n"); } catch (Throwable t) { if (!(t instanceof SkipPageException)){ out = _jspx_out; if (out != null && out.getBufferSize() != 0) out.clearBuffer(); if (_jspx_page_context != null) _jspx_page_context.handlePageException(t); } } finally { if (_jspxFactory != null) _jspxFactory.releasePageContext(_jspx_page_context); } } private boolean _jspx_meth_tags_005fhelloWorld_005f0(PageContext _jspx_page_context) throws Throwable { PageContext pageContext = _jspx_page_context; JspWriter out = _jspx_page_context.getOut(); // tags:helloWorld org.apache.jsp.tag.web.helloWorld_tag _jspx_th_tags_005fhelloWorld_005f0 = new org.apache.jsp.tag.web.helloWorld_tag(); _jspx_th_tags_005fhelloWorld_005f0.setJspContext(_jspx_page_context); _jspx_th_tags_005fhelloWorld_005f0.doTag(); return false; } }