a.jsp
来自「Struts+iBatis做的增删改查功能。开发工具:MyEclipse+MyS」· JSP 代码 · 共 47 行
JSP
47 行
<%@ page language="java" contentType="text/html; charset=UTF-8"%>
<%@ taglib uri="http://struts.apache.org/tags-bean" prefix="bean"%>
<%@ taglib uri="http://struts.apache.org/tags-html" prefix="html"%>
<%@ taglib uri="http://struts.apache.org/tags-logic" prefix="logic"%>
<%@ taglib uri="http://struts.apache.org/tags-tiles" prefix="tiles"%>
<%
// 进行乱码处理
request.setCharacterEncoding("UTF-8");
%>
<%
String path = request.getContextPath();
%>
<html>
<head>
<title>编辑</title>
</head>
<body>
<table width="100%" border="0" align="center" cellpadding="0" cellspacing="0">
<html:form action="equery.do" method="post">
<tr>
<th colspan="3">
请输入名称:
<html:text property="title" />
<html:submit value="查询" />
</th>
</tr>
</html:form>
<tr><td>ID:</td><td>名称:</td><td>删除:</td></tr>
<tr>
<bean:define id="PManageForm" name="EQuery" scope="request" />
<tr>
<td><bean:write name="PManageForm" property="id" /></td>
<td>
<a href="<%=path %>/query.do?title=<bean:write name="PManageForm" property="title"/>">
<bean:write name="PManageForm" property="title"/>
</a>
</td>
<td align="right">
<a href="<%=path %>/delete.do?title=<bean:write name="PManageForm" property="title" />">
删除
</a>
</td>
</tr>
</table>
</body>
</html>
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?