myjsp.jsp
来自「通过jsp/servlet实现web打印」· JSP 代码 · 共 30 行
JSP
30 行
<%@ page contentType="text/html;charset=GBK" isELIgnored="false"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<%@ taglib prefix="c" uri="http://java.sun.com/jstl/core" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=GBK">
<base href="<%=basePath%>">
<title>手动打印</title>
</head>
<body>
<div align="center">
<form action="InputBuild" method="post" name="manaulform">
<ul>
<li>交款人:<input type="text" name="payer"/></li>
<li>人 数:<input type="text" name="number"/></li>
<li>收款人:<input type="text" name="payee"/></li>
</ul>
<input type="submit" value="提交"/>
</form>
</div>
</body>
</html>
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?