001 package jsp.jsp2.jspx;
002
003 import javax.servlet.*;
004 import javax.servlet.http.*;
005 import javax.servlet.jsp.*;
006
007 public final class textRotate_jspx extends org.apache.jasper.runtime.HttpJspBase
008 implements org.apache.jasper.runtime.JspSourceDependent {
009
010 static private org.apache.jasper.runtime.ProtectedFunctionMapper _jspx_fnmap_0;
011
012 static {
013 _jspx_fnmap_0= org.apache.jasper.runtime.ProtectedFunctionMapper.getMapForFunction("fn:escapeXml", org.apache.taglibs.standard.functions.Functions.class, "escapeXml", new Class[] {java.lang.String.class});
014 }
015
016 private static java.util.List _jspx_dependants;
017
018 private org.apache.jasper.runtime.TagHandlerPool _jspx_tagPool_c_set_var_value_nobody;
019 private org.apache.jasper.runtime.TagHandlerPool _jspx_tagPool_c_forEach_var_end_begin;
020
021 public Object getDependants() {
022 return _jspx_dependants;
023 }
024
025 public void _jspInit() {
026 _jspx_tagPool_c_set_var_value_nobody = org.apache.jasper.runtime.TagHandlerPool.getTagHandlerPool(getServletConfig());
027 _jspx_tagPool_c_forEach_var_end_begin = org.apache.jasper.runtime.TagHandlerPool.getTagHandlerPool(getServletConfig());
028 }
029
030 public void _jspDestroy() {
031 _jspx_tagPool_c_set_var_value_nobody.release();
032 _jspx_tagPool_c_forEach_var_end_begin.release();
033 }
034
035 public void _jspService(HttpServletRequest request, HttpServletResponse response)
036 throws java.io.IOException, ServletException {
037
038 JspFactory _jspxFactory = null;
039 PageContext pageContext = null;
040 HttpSession session = null;
041 ServletContext application = null;
042 ServletConfig config = null;
043 JspWriter out = null;
044 Object page = this;
045 JspWriter _jspx_out = null;
046 PageContext _jspx_page_context = null;
047
048
049 try {
050 _jspxFactory = JspFactory.getDefaultFactory();
051 response.setContentType("image/svg+xml;charset=UTF-8");
052 pageContext = _jspxFactory.getPageContext(this, request, response,
053 null, true, 8192, true);
054 _jspx_page_context = pageContext;
055 application = pageContext.getServletContext();
056 config = pageContext.getServletConfig();
057 session = pageContext.getSession();
058 out = pageContext.getOut();
059 _jspx_out = out;
060
061 out.write("<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n");
062 out.write("<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 450 500\" height=\"500\" width=\"450\">");
063 out.write("<title>");
064 out.write("JSP 2.0 JSPX");
065 out.write("</title>");
066 if (_jspx_meth_c_set_0(_jspx_page_context))
067 return;
068 out.write("<g id=\"testContent\">");
069 out.write("<text text-anchor=\"middle\" font-size=\"15\" y=\"10%\" x=\"50%\" class=\"title\">");
070 out.write("\n JSP 2.0 XML Syntax (.jspx) Demo");
071 out.write("</text>");
072 out.write("<text text-anchor=\"middle\" font-size=\"15\" y=\"15%\" x=\"50%\" class=\"title\">");
073 out.write("\n Try changing the name parameter!");
074 out.write("</text>");
075 out.write("<g id=\"rotatedText\" transform=\"translate(225, 250)\" opacity=\"1.0\">");
076 if (_jspx_meth_c_forEach_0(_jspx_page_context))
077 return;
078 if (_jspx_meth_c_forEach_1(_jspx_page_context))
079 return;
080 out.write("<text text-anchor=\"middle\" style=\"font-size:75;font-family:Serif;fill:white\">");
081 out.write((java.lang.String) org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate("${name}", java.lang.String.class, (PageContext)_jspx_page_context, null, false));
082 out.write("</text>");
083 out.write("</g>");
084 out.write("</g>");
085 out.write("</svg>");
086 } catch (Throwable t) {
087 if (!(t instanceof SkipPageException)){
088 out = _jspx_out;
089 if (out != null && out.getBufferSize() != 0)
090 out.clearBuffer();
091 if (_jspx_page_context != null) _jspx_page_context.handlePageException(t);
092 }
093 } finally {
094 if (_jspxFactory != null) _jspxFactory.releasePageContext(_jspx_page_context);
095 }
096 }
097
098 private boolean _jspx_meth_c_set_0(PageContext _jspx_page_context)
099 throws Throwable {
100 PageContext pageContext = _jspx_page_context;
101 JspWriter out = _jspx_page_context.getOut();
102 // c:set
103 org.apache.taglibs.standard.tag.rt.core.SetTag _jspx_th_c_set_0 = (org.apache.taglibs.standard.tag.rt.core.SetTag) _jspx_tagPool_c_set_var_value_nobody.get(org.apache.taglibs.standard.tag.rt.core.SetTag.class);
104 _jspx_th_c_set_0.setPageContext(_jspx_page_context);
105 _jspx_th_c_set_0.setParent(null);
106 _jspx_th_c_set_0.setValue((java.lang.Object) org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate("${empty fn:escapeXml(param[\"name\"]) ? \"JSPX\" : fn:escapeXml(param[\"name\"])}", java.lang.Object.class, (PageContext)_jspx_page_context, _jspx_fnmap_0, false));
107 _jspx_th_c_set_0.setVar("name");
108 int _jspx_eval_c_set_0 = _jspx_th_c_set_0.doStartTag();
109 if (_jspx_th_c_set_0.doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE) {
110 _jspx_tagPool_c_set_var_value_nobody.reuse(_jspx_th_c_set_0);
111 return true;
112 }
113 _jspx_tagPool_c_set_var_value_nobody.reuse(_jspx_th_c_set_0);
114 return false;
115 }
116
117 private boolean _jspx_meth_c_forEach_0(PageContext _jspx_page_context)
118 throws Throwable {
119 PageContext pageContext = _jspx_page_context;
120 JspWriter out = _jspx_page_context.getOut();
121 // c:forEach
122 org.apache.taglibs.standard.tag.rt.core.ForEachTag _jspx_th_c_forEach_0 = (org.apache.taglibs.standard.tag.rt.core.ForEachTag) _jspx_tagPool_c_forEach_var_end_begin.get(org.apache.taglibs.standard.tag.rt.core.ForEachTag.class);
123 _jspx_th_c_forEach_0.setPageContext(_jspx_page_context);
124 _jspx_th_c_forEach_0.setParent(null);
125 _jspx_th_c_forEach_0.setEnd(24);
126 _jspx_th_c_forEach_0.setBegin(1);
127 _jspx_th_c_forEach_0.setVar("i");
128 int[] _jspx_push_body_count_c_forEach_0 = new int[] { 0 };
129 try {
130 int _jspx_eval_c_forEach_0 = _jspx_th_c_forEach_0.doStartTag();
131 if (_jspx_eval_c_forEach_0 != javax.servlet.jsp.tagext.Tag.SKIP_BODY) {
132 do {
133 out.write("\n <g opacity=\"0.95\" transform=\"scale(1.05) rotate(15)\">\n ");
134 out.write("<text id=\"words\" font-family=\"Serif\" font-size=\"40\" text-anchor=\"middle\" fill=\"DarkSlateBlue\" transform=\"scale(1.6, 1.6)\" y=\"0\" x=\"0\">");
135 out.write((java.lang.String) org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate("${name}", java.lang.String.class, (PageContext)_jspx_page_context, null, false));
136 out.write("</text>");
137 int evalDoAfterBody = _jspx_th_c_forEach_0.doAfterBody();
138 if (evalDoAfterBody != javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN)
139 break;
140 } while (true);
141 }
142 if (_jspx_th_c_forEach_0.doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE) {
143 return true;
144 }
145 } catch (Throwable _jspx_exception) {
146 while (_jspx_push_body_count_c_forEach_0[0]-- > 0)
147 out = _jspx_page_context.popBody();
148 _jspx_th_c_forEach_0.doCatch(_jspx_exception);
149 } finally {
150 _jspx_th_c_forEach_0.doFinally();
151 _jspx_tagPool_c_forEach_var_end_begin.reuse(_jspx_th_c_forEach_0);
152 }
153 return false;
154 }
155
156 private boolean _jspx_meth_c_forEach_1(PageContext _jspx_page_context)
157 throws Throwable {
158 PageContext pageContext = _jspx_page_context;
159 JspWriter out = _jspx_page_context.getOut();
160 // c:forEach
161 org.apache.taglibs.standard.tag.rt.core.ForEachTag _jspx_th_c_forEach_1 = (org.apache.taglibs.standard.tag.rt.core.ForEachTag) _jspx_tagPool_c_forEach_var_end_begin.get(org.apache.taglibs.standard.tag.rt.core.ForEachTag.class);
162 _jspx_th_c_forEach_1.setPageContext(_jspx_page_context);
163 _jspx_th_c_forEach_1.setParent(null);
164 _jspx_th_c_forEach_1.setEnd(24);
165 _jspx_th_c_forEach_1.setBegin(1);
166 _jspx_th_c_forEach_1.setVar("i");
167 int[] _jspx_push_body_count_c_forEach_1 = new int[] { 0 };
168 try {
169 int _jspx_eval_c_forEach_1 = _jspx_th_c_forEach_1.doStartTag();
170 if (_jspx_eval_c_forEach_1 != javax.servlet.jsp.tagext.Tag.SKIP_BODY) {
171 do {
172 out.write("</g>");
173 int evalDoAfterBody = _jspx_th_c_forEach_1.doAfterBody();
174 if (evalDoAfterBody != javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN)
175 break;
176 } while (true);
177 }
178 if (_jspx_th_c_forEach_1.doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE) {
179 return true;
180 }
181 } catch (Throwable _jspx_exception) {
182 while (_jspx_push_body_count_c_forEach_1[0]-- > 0)
183 out = _jspx_page_context.popBody();
184 _jspx_th_c_forEach_1.doCatch(_jspx_exception);
185 } finally {
186 _jspx_th_c_forEach_1.doFinally();
187 _jspx_tagPool_c_forEach_var_end_begin.reuse(_jspx_th_c_forEach_1);
188 }
189 return false;
190 }
191 }