📄 addpost.jsp
字号:
<%@ page language="java" contentType="text/html; charset=gbk"pageEncoding="GBK"%>
<html>
<head>
<title>职称添加</title>
<link rel="stylesheet" type="text/css" href="${pageContext.request.contextPath}/Css/LightBlue_Css.css"/>
<script type="text/javascript">
function check(form){
if(form.name.value==""){
alert("职称名称不能为空");
}else{
document.postFormsName.submit();
}
}
</script>
</head>
<body>
<form action="<%=request.getContextPath()%>/postServlets?opertion=1" method="post" name="postFormsName">
<table class="simple textCss">
<tr>
<th colspan="2" class="title">职称添加</th>
</tr>
<tr>
<td class="title" width="30%" align="right">职称姓名</td>
<td><input type="text" name="name" class="txt"></td>
</tr>
<tr>
<td colspan="2" align="center">
<input type="button" value="添加" class="buttonClass" onclick="return check(this.form);">
<input type="reset" value="重置" class="buttonClass">
<input type="button" value="返回" class="buttonClass"
onclick="window.location.href='<%=request.getContextPath()%>/postServlets?opertion=4'">
</td>
</tr>
</table>
</form>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -