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

📄 visitor.jsp

📁 有简单的网上书店需求及设计流程
💻 JSP
字号:
<%@page contentType="text/html; charset=GBK" pageEncoding="GBK"
	language="java"%>
<%@  taglib prefix="s" uri="/struts-tags"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=GBK" />
<meta http-equiv="pragma" content="no-cache">
<meta http-equiv="cache-control" content="no-cache">
<meta http-equiv="expires" content="0">
<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
<title>用户留言</title>
</head>
<body background="/bookshop/image/background.jpg" bottommargin="0">
<table width="100%">
	<tr>
		<td align="left"><font size="6" color="green"><b>欢迎您留言</b>
		</font></td>

		<td align="right"><a href="/bookshop/default.jsp"><font
			color="FF6699">返回首页</font> </a></td>
	</tr>
</table>
<hr />
<br />
<table width="968" align="center" cellpadding="1" cellspacing="0"
	border="1""   >
	<s:iterator value="#request['visitors']" id="visitor">
		<tr>
			<td width="83" height="27" align="center">主题:</td>
			<td width="181" height="27"><s:property value="#visitor.title" />
			</td>
			<td width="422" height="27" rowspan="3" align="left" valign="top">
			内容:<s:property value="#visitor.detail" /></td>
		</tr>
		<tr>
			<td width="83" height="27" align="center">签名人:</td>
			<td height="27"><s:property value="#visitor.visitorname" /></td>
		</tr>
		<tr>
			<td width="83" height="27" align="center">日期:</td>
			<td height="27"><s:property value="#visitor.visitordate" /></td>
		</tr>
		<tr>
			<td height="10">&nbsp;</td>
		</tr>
	</s:iterator>
	<s:if test="#request.visitors.size==0">
		<tr>
			<td height="27" align="center" colspan="3"><font color="red">没有留言信息!</font>
			</td>
		</tr>
	</s:if>
</table>
<s:set name="pager" value="#request.pager" />
<s:if test="#pager.hasFirst">
	<a href="/bookshop/visitor?currentPage=1">首页</a>
</s:if>
<s:if test="#pager.hasPrevious">
	<a
		href="/bookshop/visitor?currentPage=<s:property value="#pager.currentPage-1"/>">上一页</a>
</s:if>
<s:if test="#pager.hasNext">
	<a
		href="/bookshop/visitor?currentPage=<s:property value="#pager.currentPage+1"/>">下一页</a>
</s:if>
<s:if test="#pager.hasLast">
	<a
		href="/bookshop/visitor?currentPage=<s:property value="#pager.totalPage"/>">尾页</a>
</s:if>
<br />
当前第
<s:property value="#pager.currentPage" />
页,总共
<s:property value="#pager.totalPage" />
<hr />
<br />
<br />
<p>请填写留言信息:</p>
<form action="leave" method="post">
<table border="0" align="left" cellpadding="0">
	<tr>
		<td width="93" height="27" align="left">你的签名:</td>
		<td width="324" height="27"><input name="visitorname" type="text"
			value="<s:property value='visitorname'/>" /></td>
		<td><font color="red"> <s:fielderror>
		</s:fielderror> </font></td>

	</tr>
	<tr>
		<td width="93" height="27" align="left">主题:</td>
		<td width="324" height="27"><input name="title" type="text"
			value="<s:property value='title' />" /></td>
	</tr>
	<tr align="left">
		<td height="27" align="left">信息内容:</td>
	</tr>
	<tr align="left">
		<td colspan="2" valign="top"><textarea name="detail" cols="50"
			rows="6"></textarea></td>
	</tr>
	<tr align="center">
		<td height="27" colspan="2" colspan="2"><input name="submit"
			type="submit" class="code" value="留言" /> &nbsp; <input name="reset"
			type="reset" class="code" value="重置" /></td>
	</tr>
</table>
</form>
</body>
</html>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -