home *** CD-ROM | disk | FTP | other *** search
/ PC Professionell 2004 December / PCpro_2004_12.ISO / files / webserver / xampp / xampp-tomcat-addon-1.4.9-installer.exe / basic_jspx.class (.txt) < prev    next >
Encoding:
Java Class File  |  2004-05-17  |  6.3 KB  |  139 lines

  1. package org.apache.jsp.jsp2.jspx;
  2.  
  3. import java.io.IOException;
  4. import java.util.Date;
  5. import java.util.List;
  6. import java.util.Vector;
  7. import javax.servlet.ServletConfig;
  8. import javax.servlet.ServletContext;
  9. import javax.servlet.ServletException;
  10. import javax.servlet.http.HttpServletRequest;
  11. import javax.servlet.http.HttpServletResponse;
  12. import javax.servlet.http.HttpSession;
  13. import javax.servlet.jsp.JspFactory;
  14. import javax.servlet.jsp.JspWriter;
  15. import javax.servlet.jsp.PageContext;
  16. import javax.servlet.jsp.SkipPageException;
  17. import javax.servlet.jsp.tagext.JspTag;
  18. import javax.servlet.jsp.tagext.SimpleTag;
  19. import javax.servlet.jsp.tagext.TagAdapter;
  20. import org.apache.jasper.runtime.HttpJspBase;
  21. import org.apache.jasper.runtime.JspSourceDependent;
  22. import org.apache.jasper.runtime.PageContextImpl;
  23. import org.apache.jasper.runtime.ProtectedFunctionMapper;
  24. import org.apache.jasper.runtime.TagHandlerPool;
  25. import org.apache.jsp.tag.web.xhtmlbasic_tag;
  26. import org.apache.taglibs.standard.tag.rt.fmt.FormatDateTag;
  27.  
  28. public final class basic_jspx extends HttpJspBase implements JspSourceDependent {
  29.    private static Vector _jspx_dependants = new Vector(1);
  30.    private TagHandlerPool _jspx_tagPool_fmt_formatDate_value_pattern_nobody;
  31.    // $FF: synthetic field
  32.    static Class class$org$apache$taglibs$standard$tag$rt$fmt$FormatDateTag;
  33.    // $FF: synthetic field
  34.    static Class class$java$util$Date;
  35.  
  36.    public List getDependants() {
  37.       return _jspx_dependants;
  38.    }
  39.  
  40.    public void _jspInit() {
  41.       this._jspx_tagPool_fmt_formatDate_value_pattern_nobody = TagHandlerPool.getTagHandlerPool(this.getServletConfig());
  42.    }
  43.  
  44.    public void _jspDestroy() {
  45.       this._jspx_tagPool_fmt_formatDate_value_pattern_nobody.release();
  46.    }
  47.  
  48.    public void _jspService(HttpServletRequest request, HttpServletResponse response) throws IOException, ServletException {
  49.       JspFactory _jspxFactory = null;
  50.       PageContext pageContext = null;
  51.       HttpSession session = null;
  52.       ServletContext application = null;
  53.       ServletConfig config = null;
  54.       JspWriter out = null;
  55.       JspWriter _jspx_out = null;
  56.       PageContext _jspx_page_context = null;
  57.  
  58.       try {
  59.          _jspxFactory = JspFactory.getDefaultFactory();
  60.          response.setContentType("text/html;charset=UTF-8");
  61.          pageContext = _jspxFactory.getPageContext(this, request, response, (String)null, true, 8192, true);
  62.          _jspx_page_context = pageContext;
  63.          application = pageContext.getServletContext();
  64.          config = pageContext.getServletConfig();
  65.          session = pageContext.getSession();
  66.          out = pageContext.getOut();
  67.          out.write("<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n");
  68.          if (!this._jspx_meth_tags_xhtmlbasic_0(pageContext)) {
  69.             return;
  70.          }
  71.       } catch (Throwable t) {
  72.          if (!(t instanceof SkipPageException)) {
  73.             if (_jspx_out != null && _jspx_out.getBufferSize() != 0) {
  74.                _jspx_out.clearBuffer();
  75.             }
  76.  
  77.             if (_jspx_page_context != null) {
  78.                _jspx_page_context.handlePageException(t);
  79.                return;
  80.             }
  81.          }
  82.  
  83.          return;
  84.       } finally {
  85.          if (_jspxFactory != null) {
  86.             _jspxFactory.releasePageContext(_jspx_page_context);
  87.          }
  88.  
  89.       }
  90.  
  91.    }
  92.  
  93.    private boolean _jspx_meth_tags_xhtmlbasic_0(PageContext _jspx_page_context) throws Throwable {
  94.       JspWriter out = _jspx_page_context.getOut();
  95.       HttpSession session = _jspx_page_context.getSession();
  96.       ServletContext application = _jspx_page_context.getServletContext();
  97.       HttpServletRequest request = (HttpServletRequest)_jspx_page_context.getRequest();
  98.       xhtmlbasic_tag _jspx_th_tags_xhtmlbasic_0 = new xhtmlbasic_tag();
  99.       _jspx_th_tags_xhtmlbasic_0.setJspContext(_jspx_page_context);
  100.       _jspx_th_tags_xhtmlbasic_0.setJspBody(new basic_jspxHelper(this, 0, _jspx_page_context, _jspx_th_tags_xhtmlbasic_0, (int[])null));
  101.       _jspx_th_tags_xhtmlbasic_0.doTag();
  102.       return false;
  103.    }
  104.  
  105.    private boolean _jspx_meth_fmt_formatDate_0(JspTag _jspx_parent, PageContext _jspx_page_context) throws Throwable {
  106.       JspWriter out = _jspx_page_context.getOut();
  107.       FormatDateTag _jspx_th_fmt_formatDate_0 = (FormatDateTag)this._jspx_tagPool_fmt_formatDate_value_pattern_nobody.get(class$org$apache$taglibs$standard$tag$rt$fmt$FormatDateTag == null ? (class$org$apache$taglibs$standard$tag$rt$fmt$FormatDateTag = class$("org.apache.taglibs.standard.tag.rt.fmt.FormatDateTag")) : class$org$apache$taglibs$standard$tag$rt$fmt$FormatDateTag);
  108.       _jspx_th_fmt_formatDate_0.setPageContext(_jspx_page_context);
  109.       _jspx_th_fmt_formatDate_0.setParent(new TagAdapter((SimpleTag)_jspx_parent));
  110.       _jspx_th_fmt_formatDate_0.setPattern("MMMM d, yyyy, H:mm:ss");
  111.       _jspx_th_fmt_formatDate_0.setValue((Date)PageContextImpl.proprietaryEvaluate("${now}", class$java$util$Date == null ? (class$java$util$Date = class$("java.util.Date")) : class$java$util$Date, _jspx_page_context, (ProtectedFunctionMapper)null, false));
  112.       int _jspx_eval_fmt_formatDate_0 = _jspx_th_fmt_formatDate_0.doStartTag();
  113.       if (_jspx_th_fmt_formatDate_0.doEndTag() == 5) {
  114.          throw new SkipPageException();
  115.       } else {
  116.          this._jspx_tagPool_fmt_formatDate_value_pattern_nobody.reuse(_jspx_th_fmt_formatDate_0);
  117.          return false;
  118.       }
  119.    }
  120.  
  121.    // $FF: synthetic method
  122.    static Class class$(String x0) {
  123.       try {
  124.          return Class.forName(x0);
  125.       } catch (ClassNotFoundException x1) {
  126.          throw new NoClassDefFoundError(x1.getMessage());
  127.       }
  128.    }
  129.  
  130.    // $FF: synthetic method
  131.    static boolean access$000(basic_jspx x0, JspTag x1, PageContext x2) throws Throwable {
  132.       return x0._jspx_meth_fmt_formatDate_0(x1, x2);
  133.    }
  134.  
  135.    static {
  136.       _jspx_dependants.add("/WEB-INF/tags/xhtmlbasic.tag");
  137.    }
  138. }
  139.