📄 price.jsp
字号:
<%@page contentType="text/html" pageEncoding="UTF-8"%><!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN""http://www.w3.org/TR/html4/loose.dtd"><%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %><%@taglib prefix="html" uri="http://jakarta.apache.org/struts/tags-html" %><c:set var="page_title" value="Modify Price" /><html> <head> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> <title>${page_title}</title> </head> <body> <%@ include file="nav.jsp" %> <h2>${page_title}</h2> <html:form action="/admin/Price_handler" method="get"> <html:select property="selId" onchange="submit()"> <html:option value="">--- choose ---</html:option> <html:optionsCollection property="list" value="id" label="id" /> </html:select> <!-- <html:submit /> --> </html:form> <br /> <html:form action="/admin/Price_handler" method="get"> <c:if test="${!empty PriceHandler.selId}"> <c:set var="p" value="${PriceHandler.selProduct}" /> <tr> <td><c:out value="${p.id}" /></td> <td><c:out value="${p.description}" /></td> <td>$<html:text property="price" size="13" value="${p.price}" /></td> </tr> <input type="submit" name="price_button" value="Modify"/> </c:if> </html:form> <html:form action="/admin/Price_handler" method="get"> <table border="1" cellpadding="5px"> <tr> <th>id</th> <th>description</th> <th>price</th> </tr> <c:forEach var="p" items="${PriceHandler.products}" > <tr> <td><c:out value="${p.id}" /></td> <td><c:out value="${p.description}" /></td> <td>$<c:out value="${p.price}" /></td> </tr> </c:forEach> </table> </html:form> </body></html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -