helloworld.jsp
来自「Java Pattern Oriented Framework (Jt) 是为了」· JSP 代码 · 共 47 行
JSP
47 行
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ page import="Jt.*" %>
<%@ page import="Jt.examples.*" %>
<html>
<body bgcolor="white">
<!-- HelloWorld.jsp - Example of JSP support -->
<!-- Create the Jt factory -->
<jsp:useBean id='factory' class='Jt.JtFactory' scope='request'/>
<!-- The resource file Jt.properties should be placed -->
<!-- under /WEB-INF/class -->
<!- Create an instance of HelloWorld -->
<% JtInterface helloWorld = (JtInterface) factory.createObject (HelloWorld.JtCLASS_NAME); %>
<!-- Implement the business logic -->
<% Object jtReply = factory.sendMessage (helloWorld, new JtMessage (HelloWorld.JtHELLO)); %>
<!-- View the results -->
<%= jtReply %>
</body>
</html>
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?