list_customers.jsp

来自「加拿大达内科技有限公司配需java程序员的上课时的代码」· JSP 代码 · 共 55 行

JSP
55
字号
<%@ page language="java" pageEncoding="ISO-8859-1"%>

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


<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html:html lang="true">
<head>

	<html:base />

	<title>list_customers.jsp</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>
	<center>
		<font size="6">list customers</font>
		<br>
		<table border="1" bgcolor="#cccccc" cellpadding="3" cellspacing="0">
			<tr>
				<td>
					customer's name
				</td>
				<td>
					customer's age
				</td>
			</tr>
			<logic:iterate id="customer" name="customers">
				<tr>
					<td>
						<bean:write name="customer" property="name" />
					</td>
					<td>
						<bean:write name="customer" property="age" />
					</td>
				</tr>
			</logic:iterate>
		</table>
	</center>
</body>
</html:html>

⌨️ 快捷键说明

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