📄 reply.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"> ${msg.msgTitle }</th>
<th width="204" align="left" scope="col"> ${msg.msgDate }</th>
</tr>
<tr>
<td height="81" align="center"> <c:out value="${userName}"></c:out> </td>
<td colspan="2" valign="top"> ${msg.msgContent }</td>
</tr>
<c:forEach var="rep" items="${replyList}">
<tr>
<td height="96" rowspan="2"> ${userName }</td>
<td colspan="2">Reply: ${rep.replyDate } <input type="submit" value="delete" onclick="formSubmit('delete','${rep.replyID}')"></td>
</tr>
<tr>
<td height="79" colspan="2" valign="top"> ${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 + -