?? newnotice.jsp
字號:
<%--下面這兩句話導入taglibs.jsp文件和header.jsp文件--%>
<%--這種導入的作用相當于將被導入文件的內容復制到這句話的位置--%>
<%@ page contentType="text/html;charset=gb2312" language="java"%>
<%@ include file="/common/taglibs.jsp"%>
<html:html>
<head>
<title>
<bean:message key="InsertNewNotice.jsp.title" />
</title>
</head>
<link href="images/myStyleClass.css" rel="stylesheet" type="text/css">
<body>
<%@ include file="/common/header.jsp"%>
<%--html:errors標簽顯示存儲于ActionErrors中的ActionMessage對象所封裝的信息--%>
<html:errors />
<%--html:form標簽生成HTML中的form標簽--%>
<%--action屬性設定該表單將被提交到的URL--%>
<%--focus屬性設置初始時焦點所在的元素的名字--%>
<html:form action="/newnotice.do" focus="title">
<center>
<%--生成一個三行兩列的表格--%>
<table width="72%" border="0" align="center" cellpadding="2" cellspacing="2">
<tr>
<%--該行分為兩列,第一列是一段文字,它從預定義的資源中獲取相應關鍵字的對應字符串--%>
<%--第二列是一個HTML輸入表單中類型為text的<Input>標簽--%>
<td width="40%" align="right">
<bean:message key="InsertNewNotice.title" />
</td>
<td width="60%">
<html:text property="title" size="70" />
</td>
</tr>
<tr>
<%--該行分為兩列,第二列是一個HTML輸入表單中類型為textarea的<Input>標簽--%>
<td align="right">
<bean:message key="InsertNewNotice.content" />
</td>
<td>
<html:textarea property="content" cols="60" rows="12" />
</td>
</tr>
<tr>
<%--該行分為兩列,第一列是一個HTML輸入表單中類型為submit的<Input>標簽--%>
<%--其顯示文字為從預定義的資源中獲取InsertNewNotice.submit關鍵字的對應字符串--%>
<td align="right">
<html:submit property="submit">
<bean:message key="InsertNewNotice.insert" />
</html:submit>
</td>
<%--第二列是一個HTML輸入表單中類型為reset的<Input>標簽--%>
<%--其顯示文字為從預定義的資源中獲取InsertNewNotice.reset關鍵字的對應字符串--%>
<td align="left">
<html:reset>
<bean:message key="InsertNewNotice.reset" />
</html:reset>
</td>
</tr>
</table>
</center>
</html:form>
<%@ include file="/common/footer.jsp"%>
</body>
</html:html>
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -