1 | package org.apache.jsp.tag.web; |
---|
2 | |
---|
3 | import javax.servlet.*; |
---|
4 | import javax.servlet.http.*; |
---|
5 | import javax.servlet.jsp.*; |
---|
6 | |
---|
7 | public final class htmlJsp_tag |
---|
8 | extends javax.servlet.jsp.tagext.SimpleTagSupport |
---|
9 | implements org.apache.jasper.runtime.JspSourceDependent { |
---|
10 | |
---|
11 | |
---|
12 | private static final JspFactory _jspxFactory = JspFactory.getDefaultFactory(); |
---|
13 | |
---|
14 | private static java.util.List _jspx_dependants; |
---|
15 | |
---|
16 | private JspContext jspContext; |
---|
17 | private java.io.Writer _jspx_sout; |
---|
18 | private org.apache.jasper.runtime.TagHandlerPool _005fjspx_005ftagPool_005fc_005fif_0026_005ftest; |
---|
19 | |
---|
20 | private javax.el.ExpressionFactory _el_expressionfactory; |
---|
21 | private org.apache.AnnotationProcessor _jsp_annotationprocessor; |
---|
22 | |
---|
23 | public void setJspContext(JspContext ctx) { |
---|
24 | super.setJspContext(ctx); |
---|
25 | java.util.ArrayList _jspx_nested = null; |
---|
26 | java.util.ArrayList _jspx_at_begin = null; |
---|
27 | java.util.ArrayList _jspx_at_end = null; |
---|
28 | this.jspContext = new org.apache.jasper.runtime.JspContextWrapper(ctx, _jspx_nested, _jspx_at_begin, _jspx_at_end, null); |
---|
29 | } |
---|
30 | |
---|
31 | public JspContext getJspContext() { |
---|
32 | return this.jspContext; |
---|
33 | } |
---|
34 | private java.lang.String jspFile; |
---|
35 | |
---|
36 | public java.lang.String getJspFile() { |
---|
37 | return this.jspFile; |
---|
38 | } |
---|
39 | |
---|
40 | public void setJspFile(java.lang.String jspFile) { |
---|
41 | this.jspFile = jspFile; |
---|
42 | jspContext.setAttribute("jspFile", jspFile); |
---|
43 | } |
---|
44 | |
---|
45 | public Object getDependants() { |
---|
46 | return _jspx_dependants; |
---|
47 | } |
---|
48 | |
---|
49 | private void _jspInit(ServletConfig config) { |
---|
50 | _005fjspx_005ftagPool_005fc_005fif_0026_005ftest = org.apache.jasper.runtime.TagHandlerPool.getTagHandlerPool(config); |
---|
51 | _el_expressionfactory = _jspxFactory.getJspApplicationContext(config.getServletContext()).getExpressionFactory(); |
---|
52 | _jsp_annotationprocessor = (org.apache.AnnotationProcessor) config.getServletContext().getAttribute(org.apache.AnnotationProcessor.class.getName()); |
---|
53 | } |
---|
54 | |
---|
55 | public void _jspDestroy() { |
---|
56 | _005fjspx_005ftagPool_005fc_005fif_0026_005ftest.release(); |
---|
57 | } |
---|
58 | |
---|
59 | public void doTag() throws JspException, java.io.IOException { |
---|
60 | PageContext _jspx_page_context = (PageContext)jspContext; |
---|
61 | HttpServletRequest request = (HttpServletRequest) _jspx_page_context.getRequest(); |
---|
62 | HttpServletResponse response = (HttpServletResponse) _jspx_page_context.getResponse(); |
---|
63 | HttpSession session = _jspx_page_context.getSession(); |
---|
64 | ServletContext application = _jspx_page_context.getServletContext(); |
---|
65 | ServletConfig config = _jspx_page_context.getServletConfig(); |
---|
66 | JspWriter out = jspContext.getOut(); |
---|
67 | _jspInit(config); |
---|
68 | jspContext.getELContext().putContext(JspContext.class,jspContext); |
---|
69 | if( getJspFile() != null ) |
---|
70 | _jspx_page_context.setAttribute("jspFile", getJspFile()); |
---|
71 | |
---|
72 | try { |
---|
73 | out.write('\n'); |
---|
74 | out.write('\n'); |
---|
75 | out.write('\n'); |
---|
76 | if (_jspx_meth_c_005fif_005f0(_jspx_page_context)) |
---|
77 | return; |
---|
78 | out.write('\n'); |
---|
79 | } catch( Throwable t ) { |
---|
80 | if( t instanceof SkipPageException ) |
---|
81 | throw (SkipPageException) t; |
---|
82 | if( t instanceof java.io.IOException ) |
---|
83 | throw (java.io.IOException) t; |
---|
84 | if( t instanceof IllegalStateException ) |
---|
85 | throw (IllegalStateException) t; |
---|
86 | if( t instanceof JspException ) |
---|
87 | throw (JspException) t; |
---|
88 | throw new JspException(t); |
---|
89 | } finally { |
---|
90 | jspContext.getELContext().putContext(JspContext.class,super.getJspContext()); |
---|
91 | ((org.apache.jasper.runtime.JspContextWrapper) jspContext).syncEndTagFile(); |
---|
92 | _jspDestroy(); |
---|
93 | } |
---|
94 | } |
---|
95 | |
---|
96 | private boolean _jspx_meth_c_005fif_005f0(PageContext _jspx_page_context) |
---|
97 | throws Throwable { |
---|
98 | JspWriter out = _jspx_page_context.getOut(); |
---|
99 | HttpServletRequest request = (HttpServletRequest)_jspx_page_context.getRequest(); |
---|
100 | HttpServletResponse response = (HttpServletResponse)_jspx_page_context.getResponse(); |
---|
101 | // c:if |
---|
102 | org.apache.taglibs.standard.tag.rt.core.IfTag _jspx_th_c_005fif_005f0 = (org.apache.taglibs.standard.tag.rt.core.IfTag) _005fjspx_005ftagPool_005fc_005fif_0026_005ftest.get(org.apache.taglibs.standard.tag.rt.core.IfTag.class); |
---|
103 | _jspx_th_c_005fif_005f0.setPageContext(_jspx_page_context); |
---|
104 | _jspx_th_c_005fif_005f0.setParent(new javax.servlet.jsp.tagext.TagAdapter((javax.servlet.jsp.tagext.SimpleTag) this )); // /WEB-INF/tags/htmlJsp.tag(4,0) name = test type = boolean reqTime = true required = true fragment = false deferredValue = false expectedTypeName = null deferredMethod = false methodSignature = null |
---|
105 | _jspx_th_c_005fif_005f0.setTest(((java.lang.Boolean) org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate("${not empty jspFile}", java.lang.Boolean.class, (PageContext)this.getJspContext(), null, false)).booleanValue()); |
---|
106 | int _jspx_eval_c_005fif_005f0 = _jspx_th_c_005fif_005f0.doStartTag(); |
---|
107 | if (_jspx_eval_c_005fif_005f0 != javax.servlet.jsp.tagext.Tag.SKIP_BODY) { |
---|
108 | do { |
---|
109 | out.write('\n'); |
---|
110 | out.write(' '); |
---|
111 | org.apache.jasper.runtime.JspRuntimeLibrary.include(request, response, (java.lang.String) org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate("${jspFile}.jsp", java.lang.String.class, (PageContext)this.getJspContext(), null, false), out, false); |
---|
112 | out.write('\n'); |
---|
113 | int evalDoAfterBody = _jspx_th_c_005fif_005f0.doAfterBody(); |
---|
114 | if (evalDoAfterBody != javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN) |
---|
115 | break; |
---|
116 | } while (true); |
---|
117 | } |
---|
118 | if (_jspx_th_c_005fif_005f0.doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE) { |
---|
119 | _005fjspx_005ftagPool_005fc_005fif_0026_005ftest.reuse(_jspx_th_c_005fif_005f0); |
---|
120 | throw new SkipPageException(); |
---|
121 | } |
---|
122 | _005fjspx_005ftagPool_005fc_005fif_0026_005ftest.reuse(_jspx_th_c_005fif_005f0); |
---|
123 | return false; |
---|
124 | } |
---|
125 | } |
---|