home *** CD-ROM | disk | FTP | other *** search
- package org.apache.jsp.jsp2.jspx;
-
- import java.io.IOException;
- import java.util.List;
- import java.util.Vector;
- import javax.servlet.ServletConfig;
- import javax.servlet.ServletContext;
- import javax.servlet.ServletException;
- import javax.servlet.http.HttpServletRequest;
- import javax.servlet.http.HttpServletResponse;
- import javax.servlet.http.HttpSession;
- import javax.servlet.jsp.JspFactory;
- import javax.servlet.jsp.JspWriter;
- import javax.servlet.jsp.PageContext;
- import javax.servlet.jsp.SkipPageException;
- import javax.servlet.jsp.tagext.Tag;
- import org.apache.jasper.runtime.HttpJspBase;
- import org.apache.jasper.runtime.JspSourceDependent;
- import org.apache.jasper.runtime.PageContextImpl;
- import org.apache.jasper.runtime.ProtectedFunctionMapper;
- import org.apache.jasper.runtime.TagHandlerPool;
- import org.apache.taglibs.standard.tag.rt.core.SetTag;
-
- public final class textRotate_jspx extends HttpJspBase implements JspSourceDependent {
- private static Vector _jspx_dependants;
- private TagHandlerPool _jspx_tagPool_c_set_var_value_nobody;
- private TagHandlerPool _jspx_tagPool_c_forEach_var_end_begin;
- // $FF: synthetic field
- static Class class$java$lang$String;
- // $FF: synthetic field
- static Class class$org$apache$taglibs$standard$tag$rt$core$SetTag;
- // $FF: synthetic field
- static Class class$java$lang$Object;
-
- public List getDependants() {
- return _jspx_dependants;
- }
-
- public void _jspInit() {
- this._jspx_tagPool_c_set_var_value_nobody = TagHandlerPool.getTagHandlerPool(this.getServletConfig());
- this._jspx_tagPool_c_forEach_var_end_begin = TagHandlerPool.getTagHandlerPool(this.getServletConfig());
- }
-
- public void _jspDestroy() {
- this._jspx_tagPool_c_set_var_value_nobody.release();
- this._jspx_tagPool_c_forEach_var_end_begin.release();
- }
-
- public void _jspService(HttpServletRequest request, HttpServletResponse response) throws IOException, ServletException {
- JspFactory _jspxFactory = null;
- PageContext pageContext = null;
- HttpSession session = null;
- ServletContext application = null;
- ServletConfig config = null;
- JspWriter out = null;
- JspWriter _jspx_out = null;
- PageContext _jspx_page_context = null;
-
- try {
- _jspxFactory = JspFactory.getDefaultFactory();
- response.setContentType("image/svg+xml;charset=UTF-8");
- pageContext = _jspxFactory.getPageContext(this, request, response, (String)null, true, 8192, true);
- _jspx_page_context = pageContext;
- application = pageContext.getServletContext();
- config = pageContext.getServletConfig();
- session = pageContext.getSession();
- out = pageContext.getOut();
- out.write("<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n");
- out.write("<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 450 500\" height=\"500\" width=\"450\">");
- out.write("<title>");
- out.write("JSP 2.0 JSPX");
- out.write("</title>");
- if (!this._jspx_meth_c_set_0(pageContext)) {
- out.write("<g id=\"testContent\">");
- out.write("<text text-anchor=\"middle\" font-size=\"15\" y=\"10%\" x=\"50%\" class=\"title\">");
- out.write("\n JSP 2.0 XML Syntax (.jspx) Demo");
- out.write("</text>");
- out.write("<text text-anchor=\"middle\" font-size=\"15\" y=\"15%\" x=\"50%\" class=\"title\">");
- out.write("\n Try changing the name parameter!");
- out.write("</text>");
- out.write("<g id=\"rotatedText\" transform=\"translate(225, 250)\" opacity=\"1.0\">");
-
- for(int _jspx_temp0 = 1; _jspx_temp0 <= 24; ++_jspx_temp0) {
- _jspx_page_context.setAttribute("i", String.valueOf(_jspx_temp0));
- out.write("\n <g opacity=\"0.95\" transform=\"scale(1.05) rotate(15)\">\n ");
- 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\">");
- out.write((String)PageContextImpl.proprietaryEvaluate("${name}", class$java$lang$String == null ? (class$java$lang$String = class$("java.lang.String")) : class$java$lang$String, _jspx_page_context, (ProtectedFunctionMapper)null, false));
- out.write("</text>");
- }
-
- for(int _jspx_temp1 = 1; _jspx_temp1 <= 24; ++_jspx_temp1) {
- _jspx_page_context.setAttribute("i", String.valueOf(_jspx_temp1));
- out.write("</g>");
- }
-
- out.write("<text text-anchor=\"middle\" style=\"font-size:75;font-family:Serif;fill:white\">");
- out.write((String)PageContextImpl.proprietaryEvaluate("${name}", class$java$lang$String == null ? (class$java$lang$String = class$("java.lang.String")) : class$java$lang$String, _jspx_page_context, (ProtectedFunctionMapper)null, false));
- out.write("</text>");
- out.write("</g>");
- out.write("</g>");
- out.write("</svg>");
- return;
- }
- } catch (Throwable t) {
- if (!(t instanceof SkipPageException)) {
- if (_jspx_out != null && _jspx_out.getBufferSize() != 0) {
- _jspx_out.clearBuffer();
- }
-
- if (_jspx_page_context != null) {
- _jspx_page_context.handlePageException(t);
- return;
- }
- }
-
- return;
- } finally {
- if (_jspxFactory != null) {
- _jspxFactory.releasePageContext(_jspx_page_context);
- }
-
- }
-
- }
-
- private boolean _jspx_meth_c_set_0(PageContext _jspx_page_context) throws Throwable {
- JspWriter out = _jspx_page_context.getOut();
- SetTag _jspx_th_c_set_0 = (SetTag)this._jspx_tagPool_c_set_var_value_nobody.get(class$org$apache$taglibs$standard$tag$rt$core$SetTag == null ? (class$org$apache$taglibs$standard$tag$rt$core$SetTag = class$("org.apache.taglibs.standard.tag.rt.core.SetTag")) : class$org$apache$taglibs$standard$tag$rt$core$SetTag);
- _jspx_th_c_set_0.setPageContext(_jspx_page_context);
- _jspx_th_c_set_0.setParent((Tag)null);
- _jspx_th_c_set_0.setValue(PageContextImpl.proprietaryEvaluate("${empty param[\"name\"] ? \"JSPX\" : param[\"name\"]}", class$java$lang$Object == null ? (class$java$lang$Object = class$("java.lang.Object")) : class$java$lang$Object, _jspx_page_context, (ProtectedFunctionMapper)null, false));
- _jspx_th_c_set_0.setVar("name");
- int _jspx_eval_c_set_0 = _jspx_th_c_set_0.doStartTag();
- if (_jspx_th_c_set_0.doEndTag() == 5) {
- return true;
- } else {
- this._jspx_tagPool_c_set_var_value_nobody.reuse(_jspx_th_c_set_0);
- return false;
- }
- }
-
- // $FF: synthetic method
- static Class class$(String x0) {
- try {
- return Class.forName(x0);
- } catch (ClassNotFoundException x1) {
- throw new NoClassDefFoundError(x1.getMessage());
- }
- }
- }
-