demo.jsp

来自「RESIN 3.2 最新源码」· JSP 代码 · 共 20 行

JSP
20
字号
<%@ page import="com.caucho.hessian.client.HessianProxyFactory" %><%@ page import="example.MathService" %><%HessianProxyFactory factory = new HessianProxyFactory();// http://localhost:8080/resin-doc/protocols/tutorial/hessian-add/hessian/mathString url = ("http://" +              request.getServerName() + ":" + request.getServerPort() +              request.getContextPath() + "/hessian/math");MathService math = (MathService) factory.create(MathService.class, url);%><pre>3 + 2 = <%= math.add(3, 2) %>3 - 2 = <%= math.sub(3, 2) %>3 * 2 = <%= math.mul(3, 2) %>3 / 2 = <%= math.div(3, 2) %></pre>

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?