update.jsp 1.4 KB

1234567891011121314151617181920212223242526272829303132
  1. <%@ page contentType="text/html; utf-8" pageEncoding="UTF-8" %>
  2. <%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
  3. <!DOCTYPE html>
  4. <html lang="en">
  5. <head>
  6. <meta charset="UTF-8">
  7. <title>修改品牌</title>
  8. </head>
  9. <body>
  10. <div style="width:400px; margin:0 auto;">
  11. <h3>修改品牌</h3>
  12. <form action="${pageContext.servletContext.contextPath}/updateBrand" method="post">
  13. <input type="hidden" name="id" value="${requestScope.brand.id}">
  14. 品牌名称:<input name="brandName" value="${requestScope.brand.brandName}"><br>
  15. 企业名称:<input name="companyName" value="${requestScope.brand.companyName}"><br>
  16. 排&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;序:<input name="ordered" value="${requestScope.brand.ordered}"><br>
  17. 描述信息:<textarea rows="5" cols="20" name="description">${requestScope.brand.description}</textarea><br>
  18. 状&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;态:
  19. <c:if test="${requestScope.brand.status != 1}">
  20. <input type="radio" name="status" value="2" checked>禁用
  21. <input type="radio" name="status" value="1">启用<br>
  22. </c:if>
  23. <c:if test="${requestScope.brand.status == 1}">
  24. <input type="radio" name="status" value="2" >禁用
  25. <input type="radio" name="status" value="1" checked>启用<br>
  26. </c:if>
  27. <input type="submit" value="提交">
  28. </form>
  29. </div>
  30. </body>
  31. </html>