dept_add.jsp

来自「该系统对jsp进行了初级编程 实现了ajax下的部门人才管理」· JSP 代码 · 共 63 行

JSP
63
字号
<%@ page contentType="text/html; charset=gb2312" language="java" import="java.sql.*" errorPage="gb2312" %>

<%@ taglib uri="http://jakarta.apache.org/struts/tags-bean" prefix="bean" %>
<%@ taglib uri="http://jakarta.apache.org/struts/tags-html" prefix="html" %>
<%@ taglib uri="http://jakarta.apache.org/struts/tags-logic" prefix="logic" %>
<%@ taglib uri="http://jakarta.apache.org/struts/tags-tiles" prefix="tiles" %>
<%@ taglib uri="http://jakarta.apache.org/struts/tags-template" prefix="template" %>
<%@ taglib uri="http://jakarta.apache.org/struts/tags-nested" prefix="nested" %>

<%
String path=request.getContextPath();
 %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title>无标题文档</title>
</head>

<body>
<center>
<form action="<%=request.getContextPath() %>/deptInsert.do" method="post" >
  <table width="333" border="0">
    <tr>
      <th colspan="2" scope="col">添加新的部门</th>
    </tr>
    <tr>
      <th width="140" scope="row">部门编号</th>
      <td width="266">
        <input type="text" name="deptCode" />      </td>
    </tr>
    <tr>
      <th scope="row">部门名称</th>
      <td>
            <input type="text" name="deptName" />      </td>
    </tr>
    <tr>
      <th scope="row">地 址</th>
      <td>
            <input type="text" name="address" />      </td>
    </tr>
    <tr>
      <th scope="row">电 话</th>
      <td>
            <input type="text" name="telphone" />      </td>
    </tr>
    <tr>
      <th scope="row">部门描述</th>
      <td><textarea name="desc"></textarea></td>
    </tr>
    <tr>
      <th colspan="2" scope="row"><input type="submit" name="Submit" value="提交" /> 
        <input type="reset" name="Submit2" value="重置" /></th>
      </tr>
	<
  </table>
  </form>
</center>
</body>
</html>
<script language="javascript">
  
</script>

⌨️ 快捷键说明

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