prototype of calculator
This commit is contained in:
BIN
WEB-INF/work/_jsp/_calculator__jsp.class
Normal file
BIN
WEB-INF/work/_jsp/_calculator__jsp.class
Normal file
Binary file not shown.
113
WEB-INF/work/_jsp/_calculator__jsp.java
Normal file
113
WEB-INF/work/_jsp/_calculator__jsp.java
Normal file
@ -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<String,java.lang.reflect.Method> _jsp_functionMap = new java.util.HashMap<String,java.lang.reflect.Method>();
|
||||
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<String,java.lang.reflect.Method> _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<html>\n <head>\n <title> Calculator </title>\n </head>\n\n <body>\n <form action=\"calculator.jsp\" method=post>\n <p>\n <input name=\"display\">\n <br>\n <input name=\"%\" type=\"submit\" value=\"%\">\n <input name=\"root\" type=\"submit\" value=\"root\">\n <input name=\"square\" type=\"submit\" value=\"square\">\n <input name=\"reciprocal\" type=\"submit\" value=\"reciprocal\">\n <br>\n <input name=\"CE\" type=\"submit\" value=\"CE\">\n <input name=\"C\" type=\"submit\" value=\"C\">\n <input name=\"X\" type=\"submit\" value=\"X\">\n <input name=\"/\" type=\"submit\" value=\"/\">\n <br>\n <input name=\"7\" type=\"submit\" value=\"7\">\n <input name=\"8\" type=\"submit\" value=\"8\">\n <input name=\"9\" type=\"submit\" value=\"9\">\n <input name=\"*\" type=\"submit\" value=\"*\">\n <br>\n <input name=\"4\" type=\"submit\" value=\"4\">\n <input name=\"5\" type=\"submit\" value=\"5\">\n <input name=\"6\" type=\"submit\" value=\"6\">\n <input name=\"-\" type=\"submit\" value=\"-\">\n <br>\n <input name=\"1\" type=\"submit\" value=\"1\">\n <input name=\"2\" type=\"submit\" value=\"2\">\n <input name=\"3\" type=\"submit\" value=\"3\">\n <input name=\"+\" type=\"submit\" value=\"+\">\n <br>\n <input name=\"+-\" type=\"submit\" value=\"+-\">\n <input name=\"0\" type=\"submit\" value=\"0\">\n <input name=\".\" type=\"submit\" value=\".\">\n <input name=\"=\" type=\"submit\" value=\"=\">\n \n \n \n \n \n \n </p>\n </form>\n </body>\n</html>".toCharArray();
|
||||
}
|
||||
}
|
11
WEB-INF/work/_jsp/_calculator__jsp.java.smap
Normal file
11
WEB-INF/work/_jsp/_calculator__jsp.java.smap
Normal file
@ -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
|
50
calculator.jsp
Normal file
50
calculator.jsp
Normal file
@ -0,0 +1,50 @@
|
||||
<%@ page contentType="text/html; charset=big5" %>
|
||||
<html>
|
||||
<head>
|
||||
<title> Calculator </title>
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<form action="calculator.jsp" method=post>
|
||||
<p>
|
||||
<input name="display">
|
||||
<br>
|
||||
<input name="%" type="submit" value="%">
|
||||
<input name="root" type="submit" value="root">
|
||||
<input name="square" type="submit" value="square">
|
||||
<input name="reciprocal" type="submit" value="reciprocal">
|
||||
<br>
|
||||
<input name="CE" type="submit" value="CE">
|
||||
<input name="C" type="submit" value="C">
|
||||
<input name="X" type="submit" value="X">
|
||||
<input name="/" type="submit" value="/">
|
||||
<br>
|
||||
<input name="7" type="submit" value="7">
|
||||
<input name="8" type="submit" value="8">
|
||||
<input name="9" type="submit" value="9">
|
||||
<input name="*" type="submit" value="*">
|
||||
<br>
|
||||
<input name="4" type="submit" value="4">
|
||||
<input name="5" type="submit" value="5">
|
||||
<input name="6" type="submit" value="6">
|
||||
<input name="-" type="submit" value="-">
|
||||
<br>
|
||||
<input name="1" type="submit" value="1">
|
||||
<input name="2" type="submit" value="2">
|
||||
<input name="3" type="submit" value="3">
|
||||
<input name="+" type="submit" value="+">
|
||||
<br>
|
||||
<input name="+-" type="submit" value="+-">
|
||||
<input name="0" type="submit" value="0">
|
||||
<input name="." type="submit" value=".">
|
||||
<input name="=" type="submit" value="=">
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</p>
|
||||
</form>
|
||||
</body>
|
||||
</html>
|
Reference in New Issue
Block a user