📄 updatedept.jsp
字号:
<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<base href="<%=basePath%>">
<title>My JSP 'updateDept.jsp' starting page</title>
<meta http-equiv="pragma" content="no-cache">
<meta http-equiv="cache-control" content="no-cache">
<meta http-equiv="expires" content="0">
<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
<meta http-equiv="description" content="This is my page">
<!--
<link rel="stylesheet" type="text/css" href="styles.css">
-->
<SCRIPT>
function sub(id) {
var form = document.getElementById("form1");
form.action="/SelectCourse/updateDept.do?index=update&dept_id="+id;
form.submit();
}
</SCRIPT>
</head>
<body>
<CENTER>
<div><h2><strong>修改系别</strong></h2></div>
<br>
<br>
<br>
<FORM id="form1" action="" method="post">
<TABLE border="1" width="400px" bordercolor="#FFFFFF" bgcolor="0066FF">
<tr>
<td>
<DIV>系号:</DIV>
</td>
<td>
<%=request.getAttribute("dept_id")%>
</td>
<td>
</td>
</tr>
<tr>
<td>
<DIV>专业名:</DIV>
</td>
<td>
<INPUT type="text" id="dept_name" name="dept_name" value="<%=request.getAttribute("dept_name")%>" maxlength="10">
</td>
<TD>
<FONT color="#FF0000">*系名不能重复</FONT>
</TD>
</tr>
<tr>
<td colspan="3" align="center">
<input type="button" id="update" value="修改" onClick="sub('<%=request.getAttribute("dept_id")%>')" />
</td>
</tr>
</TABLE>
</FORM>
</CENTER>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -