001    package org.apache.jsp.tag.web;
002    
003    import javax.servlet.*;
004    import javax.servlet.http.*;
005    import javax.servlet.jsp.*;
006    
007    public final class helloWorld_tag
008        extends javax.servlet.jsp.tagext.SimpleTagSupport
009        implements org.apache.jasper.runtime.JspSourceDependent {
010    
011    
012      private static java.util.List _jspx_dependants;
013    
014      private JspContext jspContext;
015      private java.io.Writer _jspx_sout;
016      public void setJspContext(JspContext ctx) {
017        super.setJspContext(ctx);
018        java.util.ArrayList _jspx_nested = null;
019        java.util.ArrayList _jspx_at_begin = null;
020        java.util.ArrayList _jspx_at_end = null;
021        this.jspContext = new org.apache.jasper.runtime.JspContextWrapper(ctx, _jspx_nested, _jspx_at_begin, _jspx_at_end, null);
022      }
023    
024      public JspContext getJspContext() {
025        return this.jspContext;
026      }
027    
028      public Object getDependants() {
029        return _jspx_dependants;
030      }
031    
032      public void doTag() throws JspException, java.io.IOException {
033        PageContext _jspx_page_context = (PageContext)jspContext;
034        HttpServletRequest request = (HttpServletRequest) _jspx_page_context.getRequest();
035        HttpServletResponse response = (HttpServletResponse) _jspx_page_context.getResponse();
036        HttpSession session = _jspx_page_context.getSession();
037        ServletContext application = _jspx_page_context.getServletContext();
038        ServletConfig config = _jspx_page_context.getServletConfig();
039        JspWriter out = jspContext.getOut();
040    
041        try {
042          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-->\nHello, world!\n");
043        } catch( Throwable t ) {
044          if( t instanceof SkipPageException )
045              throw (SkipPageException) t;
046          if( t instanceof java.io.IOException )
047              throw (java.io.IOException) t;
048          if( t instanceof IllegalStateException )
049              throw (IllegalStateException) t;
050          if( t instanceof JspException )
051              throw (JspException) t;
052          throw new JspException(t);
053        } finally {
054          ((org.apache.jasper.runtime.JspContextWrapper) jspContext).syncEndTagFile();
055        }
056      }
057    }