📄 messages.jsp
字号:
<%@ page language="java" contentType="text/html; charset=utf-8"
pageEncoding="utf-8"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html"%>
<%@ taglib uri="/WEB-INF/struts-logic.tld" prefix="logic"%>
<%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean"%>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title></title>
</head>
<body>
欢迎来到论坛:
<bean:write name="loginForm" property="username" />
<br>
<a href="post.do?mode=new">发表新帖子</a>
<br>
<table border="1" cellspacing="1" cellpadding="1" align="center">
<logic:notEmpty name="postForm" property="messageList" >
<logic:iterate indexId="index" id="item" name ="postForm" property="messageList">
<tr>
<td class="allcapsCenter"><bean:write name="item" property="title" />
(<bean:write name="item" property="commentCount" />)</td>
<td class="allcapsCenter"><bean:write name="item" property="author" /></td>
<td><bean:write name="item" property="timeString" /></td>
<td nowrap class="center">
<a href="javascript:submitSid(document.fview, '<bean:write name="item" property="title" />')">查看</a>
</td>
</tr>
</logic:iterate>
</logic:notEmpty>
</table>
<html:form action="post.do?mode=view" method="post" styleId="fview">
<input type="hidden" id="hid" name="hid" />
</html:form>
</body>
<script language="JavaScript">
<!--
function submitSid(form, hid) {
form.hid.value = hid;
form.submit();
}
// -->
</script>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -