⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 newnotice.jsp

📁 公告管理系统
💻 JSP
字号:

<%@ page contentType="text/html;charset=utf-8" 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 + -