web开发过程记录
程序员文章站
2022-06-13 17:01:27
...
<%@ page language="java" contentType="text/html; charset=UTF-8"
pageEncoding="UTF-8"%>
<%@ page import="java.sql.*" %>
<%@ page import="org.jsoft.VO.orderVO" %>
<%@ page import="java.util.*" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>订单管理</title>
</head>
<body>
<center>
<h1>订单管理</h1>
<table border="1" style="border-collapse: collapse;">
<tr>
<td>名称</td>
<td>价格</td>
<td>物品id</td>
<td>用户id</td>
</tr>
<c:forEach items="${orderlist}" var="order">
<tr>
<td align="center">${order.name}</td>
<td align="center">${order.price}</td>
<td align="center">${order.sys_user_id}</td>
<td align="center">${order.goods_id}</td>
<td>
<a href="#" class="btn btn-primary btn-xs" onclick= "editCustomer(${order.goods_id})">修改</a>
<a href="#" class="btn btn-danger btn-xs" onclick="deleteCustomer(${order.goods_id})">删除</a>
</td>
</tr>
</c:forEach>
</table>
</center>
</body>
</html>
表单循环显示。 上一篇: IDEA设置类注释模板
下一篇: Idea 常用快捷键