java代码080

code080.jsp

<%@page import="pack02.code078"%> <%@page import="java.util.List"%> <%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%> <!DOCTYPE html> <html> <head> <meta charset="UTF-8"> <title>显示图书列表</title> </head> <body> <table border="1"> <tr> <td colspan="5">所有图书信息</td> </tr> <tr> <td>ID</td> <td>图书名称</td> <td>价格</td> <td>数量</td> <td>作者</td> </tr> <% List<code078> list1 = (List<code078>)request.getAttribute("list"); if(list1 == null || list1.size() < 1) { out.println("没有数据"); } else { for(code078 book : list1) { %> <tr> <td><%= book.getId() %></td> <td><%= book.getName() %></td> <td><%= book.getPrice() %></td> <td><%= book.getBookCount() %></td> <td><%= book.getAuthor() %></td> <td> <form action="pack02.code082" method="post"> <input type="hidden" name="id" value="<%= book.getId() %>"> <input type="text" name="bookCount" id="bookCount" size="3" required="required"> <input type="submit" name="submit" value="修改"> </form> </td> <td> <a href="pack02.code083?id=<%= book.getId()%>">删除</a> </td> </tr> <% } } %> <%-- create table tb_books ( id int auto_increment not null primary key comment '图书编号', name varchar(45) not null comment '图书名称', price double not null comment '价格', bookCount int not null comment '数量', author varchar(45) not null comment '作者' ) --%> </table> <a href="code076.jsp">添加图书</a> </body> </html>
点赞
收藏

评论区

加载中...

相关推荐

手写Java HashMap源码

HashMap的使用教程HashMap的使用教程HashMap的使用教程HashMap的使用教程HashMap的使用教程22

vue input复选框checkbox默认样式纯css修改

<divclass"data_list"vfor"(item,index)indata_list":key"index"<inputtype"checkbox"class"check_boxtuicheckbox":id"'id'item.id":value"item.id"vmodel

Vue+koa2开发一款全栈小程序(7.图书录入功能)

1.图书录入功能1.获取图书信息1.在mydemo/src/until.js中封装工具函数post和get//工具函数importconfigfrom'./config'//httpget工具函数获取数据exportfu

java代码092

code092.jsp通过FindServlet类查询分页数据所有图书信息ID图书名称价格数量作者<%Listlist1(List)request.getAttribute("list");for(code089book:list1)%

java代码065

code065.jsp字符编码过滤器的使用添加图书信息图书编号图书名称作者价格

java代码088

code088.jsp通过存储过程获取数据所有图书信息ID图书名称价格数量作者<%Listlist1findBook.findAll();if(list1null||list1.size()