commit b0cb439f6a64ed1a588d5b3112b5438e85e31d78 Author: jj97181818 Date: Tue May 8 23:14:38 2018 +0800 prototype of calculator diff --git a/WEB-INF/work/_jsp/_calculator__jsp.class b/WEB-INF/work/_jsp/_calculator__jsp.class new file mode 100644 index 0000000..7e013ad Binary files /dev/null and b/WEB-INF/work/_jsp/_calculator__jsp.class differ diff --git a/WEB-INF/work/_jsp/_calculator__jsp.java b/WEB-INF/work/_jsp/_calculator__jsp.java new file mode 100644 index 0000000..6bfc86e --- /dev/null +++ b/WEB-INF/work/_jsp/_calculator__jsp.java @@ -0,0 +1,113 @@ +/* + * JSP generated by Resin-3.1.15 (built Mon, 13 Oct 2014 06:45:33 PDT) + */ + +package _jsp; +import javax.servlet.*; +import javax.servlet.jsp.*; +import javax.servlet.http.*; + +public class _calculator__jsp extends com.caucho.jsp.JavaPage +{ + private static final java.util.HashMap _jsp_functionMap = new java.util.HashMap(); + private boolean _caucho_isDead; + + public void + _jspService(javax.servlet.http.HttpServletRequest request, + javax.servlet.http.HttpServletResponse response) + throws java.io.IOException, javax.servlet.ServletException + { + com.caucho.server.webapp.WebApp _jsp_application = _caucho_getApplication(); + javax.servlet.ServletContext application = _jsp_application; + com.caucho.jsp.PageContextImpl pageContext = _jsp_application.getJspApplicationContext().allocatePageContext(this, _jsp_application, request, response, null, null, 8192, true, false); + javax.servlet.jsp.PageContext _jsp_parentContext = pageContext; + javax.servlet.jsp.JspWriter out = pageContext.getOut(); + final javax.el.ELContext _jsp_env = pageContext.getELContext(); + javax.servlet.ServletConfig config = getServletConfig(); + javax.servlet.Servlet page = this; + response.setContentType("text/html; charset=big5"); + request.setCharacterEncoding("Big5"); + try { + out.write(_jsp_string0, 0, _jsp_string0.length); + } catch (java.lang.Throwable _jsp_e) { + pageContext.handlePageException(_jsp_e); + } finally { + _jsp_application.getJspApplicationContext().freePageContext(pageContext); + } + } + + private java.util.ArrayList _caucho_depends = new java.util.ArrayList(); + + public java.util.ArrayList _caucho_getDependList() + { + return _caucho_depends; + } + + public void _caucho_addDepend(com.caucho.vfs.PersistentDependency depend) + { + super._caucho_addDepend(depend); + com.caucho.jsp.JavaPage.addDepend(_caucho_depends, depend); + } + + public boolean _caucho_isModified() + { + if (_caucho_isDead) + return true; + if (com.caucho.server.util.CauchoSystem.getVersionId() != 6749855747778707107L) + return true; + for (int i = _caucho_depends.size() - 1; i >= 0; i--) { + com.caucho.vfs.Dependency depend; + depend = (com.caucho.vfs.Dependency) _caucho_depends.get(i); + if (depend.isModified()) + return true; + } + return false; + } + + public long _caucho_lastModified() + { + return 0; + } + + public java.util.HashMap _caucho_getFunctionMap() + { + return _jsp_functionMap; + } + + public void init(ServletConfig config) + throws ServletException + { + com.caucho.server.webapp.WebApp webApp + = (com.caucho.server.webapp.WebApp) config.getServletContext(); + super.init(config); + com.caucho.jsp.TaglibManager manager = webApp.getJspApplicationContext().getTaglibManager(); + com.caucho.jsp.PageContextImpl pageContext = new com.caucho.jsp.PageContextImpl(webApp, this); + } + + public void destroy() + { + _caucho_isDead = true; + super.destroy(); + } + + public void init(com.caucho.vfs.Path appDir) + throws javax.servlet.ServletException + { + com.caucho.vfs.Path resinHome = com.caucho.server.util.CauchoSystem.getResinHome(); + com.caucho.vfs.MergePath mergePath = new com.caucho.vfs.MergePath(); + mergePath.addMergePath(appDir); + mergePath.addMergePath(resinHome); + com.caucho.loader.DynamicClassLoader loader; + loader = (com.caucho.loader.DynamicClassLoader) getClass().getClassLoader(); + String resourcePath = loader.getResourcePathSpecificFirst(); + mergePath.addClassPath(resourcePath); + com.caucho.vfs.Depend depend; + depend = new com.caucho.vfs.Depend(appDir.lookup("calculator.jsp"), 1898269132803111951L, false); + com.caucho.jsp.JavaPage.addDepend(_caucho_depends, depend); + } + + private final static char []_jsp_string0; + static { + _jsp_string0 = "\n\n \n Calculator \n \n\n \n
\n

\n \n
\n \n \n \n \n
\n \n \n \n \n
\n \n \n \n \n
\n \n \n \n \n
\n \n \n \n \n
\n \n \n \n \n \n \n \n \n \n \n

\n
\n \n".toCharArray(); + } +} diff --git a/WEB-INF/work/_jsp/_calculator__jsp.java.smap b/WEB-INF/work/_jsp/_calculator__jsp.java.smap new file mode 100644 index 0000000..3fa0f9a --- /dev/null +++ b/WEB-INF/work/_jsp/_calculator__jsp.java.smap @@ -0,0 +1,11 @@ +SMAP +_calculator__jsp.java +JSP +*S JSP +*F ++ 1 calculator.jsp +calculator.jsp +*L +1#1:31 +50#1:32 +*E diff --git a/calculator.jsp b/calculator.jsp new file mode 100644 index 0000000..df8850c --- /dev/null +++ b/calculator.jsp @@ -0,0 +1,50 @@ +<%@ page contentType="text/html; charset=big5" %> + + + Calculator + + + +
+

+ +
+ + + + +
+ + + + +
+ + + + +
+ + + + +
+ + + + +
+ + + + + + + + + + +

+
+ + \ No newline at end of file