?? 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 + -