📄 index.jsp
字号:
<%@taglib uri="http://struts.apache.org/tags-html" prefix="html"%><%@taglib
uri="http://java.sun.com/jsp/jstl/core" prefix="c"%><%@ page language="java" import="java.util.*" pageEncoding="GBK"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>My JSP 'index.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">
-->
</head>
<body>
This is my JSP page.
<br>
<table width="566" border="1" height="204">
<tbody>
<tr>
<td>
<html:form action="/searchAction?method=serachEmp">
姓名
<html:text property="emp.ename"/>
工作
<html:text property="emp.job"/>
部门
<html:select property="emp.deptNo">
<html:optionsCollection name="listDept" label="dname" value="deptno"/>
</html:select>
<input type="submit" value="OK">
</html:form>
</td>
</tr>
<tr>
<td>
<table width="200" border="1">
<tbody>
<tr>
<td>
编号
</td>
<td>
姓名
</td>
<td>
工资
</td>
<td>
部门
</td>
<td>
</td>
</tr>
<c:forEach items="${listEmp}" var="emp">
<tr>
<td>
${emp.empno }
</td>
<td>
${emp.ename }
</td>
<td>
${emp.sal }
</td>
<td>
</td>
<td>
</td>
</tr>
</c:forEach>
</tbody>
</table>
</td>
</tr>
</tbody>
</table>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -