001 package jsp.jsp2.tagfiles;
002
003 import javax.servlet.*;
004 import javax.servlet.http.*;
005 import javax.servlet.jsp.*;
006
007 public final class hello_jsp extends org.apache.jasper.runtime.HttpJspBase
008 implements org.apache.jasper.runtime.JspSourceDependent {
009
010 private static java.util.List _jspx_dependants;
011
012 static {
013 _jspx_dependants = new java.util.ArrayList(1);
014 _jspx_dependants.add("/WEB-INF/tags/helloWorld.tag");
015 }
016
017 public Object getDependants() {
018 return _jspx_dependants;
019 }
020
021 public void _jspService(HttpServletRequest request, HttpServletResponse response)
022 throws java.io.IOException, ServletException {
023
024 JspFactory _jspxFactory = null;
025 PageContext pageContext = null;
026 HttpSession session = null;
027 ServletContext application = null;
028 ServletConfig config = null;
029 JspWriter out = null;
030 Object page = this;
031 JspWriter _jspx_out = null;
032 PageContext _jspx_page_context = null;
033
034
035 try {
036 _jspxFactory = JspFactory.getDefaultFactory();
037 response.setContentType("text/html");
038 pageContext = _jspxFactory.getPageContext(this, request, response,
039 null, true, 8192, true);
040 _jspx_page_context = pageContext;
041 application = pageContext.getServletContext();
042 config = pageContext.getServletConfig();
043 session = pageContext.getSession();
044 out = pageContext.getOut();
045 _jspx_out = out;
046
047 out.write("<!--\n Licensed to the Apache Software Foundation (ASF) under one or more\n contributor license agreements. See the NOTICE file distributed with\n this work for additional information regarding copyright ownership.\n The ASF licenses this file to You under the Apache License, Version 2.0\n (the \"License\"); you may not use this file except in compliance with\n the License. You may obtain a copy of the License at\n\n http://www.apache.org/licenses/LICENSE-2.0\n\n Unless required by applicable law or agreed to in writing, software\n distributed under the License is distributed on an \"AS IS\" BASIS,\n WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n See the License for the specific language governing permissions and\n limitations under the License.\n-->\n\n<html>\n <head>\n <title>JSP 2.0 Examples - Hello World Using a Tag File</title>\n </head>\n <body>\n <h1>JSP 2.0 Examples - Hello World Using a Tag File</h1>\n <hr>\n <p>This JSP page invokes a custom tag that simply echos \"Hello, World!\" \n");
048 out.write(" The custom tag is generated from a tag file in the /WEB-INF/tags\n directory.</p>\n <p>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!</p>\n <br>\n <b><u>Result:</u></b>\n ");
049 if (_jspx_meth_tags_helloWorld_0(_jspx_page_context))
050 return;
051 out.write("\n </body>\n</html>\n");
052 } catch (Throwable t) {
053 if (!(t instanceof SkipPageException)){
054 out = _jspx_out;
055 if (out != null && out.getBufferSize() != 0)
056 out.clearBuffer();
057 if (_jspx_page_context != null) _jspx_page_context.handlePageException(t);
058 }
059 } finally {
060 if (_jspxFactory != null) _jspxFactory.releasePageContext(_jspx_page_context);
061 }
062 }
063
064 private boolean _jspx_meth_tags_helloWorld_0(PageContext _jspx_page_context)
065 throws Throwable {
066 PageContext pageContext = _jspx_page_context;
067 JspWriter out = _jspx_page_context.getOut();
068 // tags:helloWorld
069 org.apache.jsp.tag.web.helloWorld_tag _jspx_th_tags_helloWorld_0 = new org.apache.jsp.tag.web.helloWorld_tag();
070 _jspx_th_tags_helloWorld_0.setJspContext(_jspx_page_context);
071 _jspx_th_tags_helloWorld_0.doTag();
072 return false;
073 }
074 }