摘要: 1. 用法 <1> 引入jar包 <2> 引入jstl标签库 <%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %> // 引入jstl标签库 <3> 与数据存储相关的三个标签 <4> jstl中的条件标签 1. if 2. 阅读全文
posted @ 2020-08-17 23:01 Jasper2003 阅读(86) 评论(0) 推荐(0) 编辑
摘要: 1. 用法: <body> <% session.setAttribute("name","Jasper"); %> Hi, my name is: ${name} </body> 例子: 在login.jsp 和 register.jsp中 <% if(request.getAttribute(" 阅读全文
posted @ 2020-08-17 10:32 Jasper2003 阅读(153) 评论(0) 推荐(0) 编辑
摘要: 1. goods_list.jsp <table border="1"> <tr> <td>Name</td><td>Description</td><td>Price</td><td>Available</td><td>Operation</td> </tr> <% List<Goods> lis 阅读全文
posted @ 2020-08-17 07:32 Jasper2003 阅读(252) 评论(0) 推荐(0) 编辑
摘要: 1. Goods.java 2. DBUtil.java public class DBUtil { public static Map<String,User> userMap = new HashMap<String,User>(); public static List<Goods> good 阅读全文
posted @ 2020-08-17 06:58 Jasper2003 阅读(278) 评论(0) 推荐(0) 编辑
摘要: goods_list.jsp <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"> <title>Insert title here</title> <style type="te 阅读全文
posted @ 2020-08-17 04:33 Jasper2003 阅读(250) 评论(0) 推荐(0) 编辑