📄 insert.jsp
字号:
<%@ page contentType="text/html;charset=gb2312"%>
<%@ 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"%>
<html>
<head>
<title>Struts+DAO 留言管理程序——登陆</title>
</head>
<body>
<center>
<h1>
留言管理范例 —— Struts + DAO实现
</h1>
<hr>
<br>
<logic:present name="uname" scope="session">
<html:form action="note.do" method="post">
<table>
<tr>
<td colspan="2">
添加新留言
</td>
</tr>
<tr>
<td>
标题:
</td>
<td>
<html:text property="title"></html:text>
</td>
</tr>
<tr>
<td>
作者:
</td>
<td>
<html:text property="author"></html:text>
</td>
</tr>
<tr>
<td>
内容:
</td>
<td>
<html:textarea property="content" cols="30" rows="6"></html:textarea>
</td>
</tr>
<tr>
<td colspan="2">
<input type="hidden" name="status" value="insert">
<input type="submit" value="添加">
<input type="reset" value="重置">
</td>
</tr>
</table>
</html:form>
<h3>
<a href="note.do?status=selectall">回到留言列表页</a>
</h3>
</logic:present>
<logic:notPresent name="uname" scope="session">
<%
response.setHeader("refresh", "2;URL=login.jsp");
%>
您还未登陆,请先登陆!!!<br>
两秒后自动跳转到登陆窗口!!!<br>
如果没有跳转,请按<a href="login.jsp">这里</a>!!!<br>
</logic:notPresent>
</center>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -