addnew.jsp
来自「简单的流言板系统,用myeclipse进行编写的,采用简单的jstl+javab」· JSP 代码 · 共 37 行
JSP
37 行
<%@ 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>
<body>
<form
action="${pageContext.request.contextPath }/MessageHandle?method=a"
method="post">
<c:if test="${added != null}">
<span ><font color="red"><c:out value="${added}"/></font></span>
</c:if>
<c:if test="${error != null}">
<span ><font color="red"><c:out value="${error}"/></font></span>
</c:if>
<table align="center" border="1" cellspacing="0">
<tr>
<td>Title</td>
<td><input type="text" name="title" size="50" title="input title here"></td>
</tr>
<tr>
<td>Content</td>
<td><textarea rows="10" cols="50" name="content"></textarea></td>
</tr>
<tr>
<td colspan="2" align="center"><input type="submit" value="Submit"> <input
type="reset" value="Reset"></td>
</tr>
</table>
</form>
</body>
</html>
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?