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

📄 reply.jsp

📁 简单的流言板系统,用myeclipse进行编写的,采用简单的jstl+javabean+servlet+jsp,属于三层架构.
💻 JSP
字号:
<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
	pageEncoding="ISO-8859-1"%>
<%@include file="./tags.jsp"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>Insert title here</title>
</head>
<script type="text/javascript" language="javascript">
function formSubmit(method,msgid){
 document.forms[0].action = '${pageContext.request.contextPath}/Reply?method=' + method + '&id=' + msgid ;
return true;
}
</script>
<body>
<form action="${pageContext.request.contextPath }/Reply" method="post">
<c:if test="${info != null}">
	<span ><font color="red"><c:out value="${info}"/></font></span>
	</c:if>
<table width="779" border="1" align="center" cellpadding="0"
	cellspacing="0">

	<tr>
		<th width="96" height="24" scope="col">Name</th>
		<th width="471" align="left" scope="col">&nbsp;${msg.msgTitle }</th>
		<th width="204" align="left" scope="col">&nbsp;${msg.msgDate }</th>
	</tr>
	<tr>
		<td height="81" align="center">&nbsp;<c:out value="${userName}"></c:out> </td>
		<td colspan="2" valign="top">&nbsp;${msg.msgContent }</td>
	</tr>
	<c:forEach var="rep" items="${replyList}">
		<tr>
			<td height="96" rowspan="2">&nbsp;${userName }</td>
			<td colspan="2">Reply:&nbsp;${rep.replyDate }&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<input type="submit" value="delete" onclick="formSubmit('delete','${rep.replyID}')"></td>
		</tr>
		<tr>
			<td height="79" colspan="2" valign="top">&nbsp;${rep.content }</td>
		</tr>
	</c:forEach>
</table>
<input type="hidden" name="msgID" value="${msgID}">
<table width ="779" border="1" align="center" cellpadding="0"
	cellspacing="0">
<tr>
	<td><textarea rows="10" cols="50" name="content"></textarea></td>
</tr>
<tr>
	<td><input type="submit" value="Submit"><input
		type="reset" value="Reset"></td>
</tr>
</table>
</form>
</body>
</html>

⌨️ 快捷键说明

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