panaewboi

ProductList.jsp

Aug 6th, 2020 (edited)
118
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
HTML 2.05 KB | None | 0 0
  1. <%--
  2.    Document   : ProductList
  3.    Created on : Aug 6, 2020, 1:25:46 PM
  4.    Author     : INT303
  5. --%>
  6. <%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
  7. <%@page contentType="text/html" pageEncoding="UTF-8"%>
  8. <!DOCTYPE html>
  9. <html>
  10.     <head>
  11.         <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  12.         <title>Classic Model : Product List</title>
  13.         <script src="bootstrap-4.5.0-dist/js/bootstrap.min.js" type="text/javascript"></script>
  14.         <link href="bootstrap-4.5.0-dist/css/bootstrap.min.css" rel="stylesheet" type="text/css"/>
  15.  
  16.     </head>
  17.     <body>
  18.         <div class="container-fluid">
  19.             <div class="row rounded border badge-secondary p-4 pt-2 pb-2">
  20.                 <div class="col-2">
  21.                     <label class="h4">Product List::</label>
  22.                 </div>
  23.                 <div class="col-5 ">
  24.                 </div>
  25.                 <div class="col-5 ">
  26.                     <form action="ProductList" method="POST">
  27.                         Search product : <input type="text" name="searchParam" value="${param.searchParam}" minlength="3"
  28.                                                required/>
  29.                         <input  type="submit" value="search" /><br>
  30.                         <span style="color: red">${message}</span>
  31.                     </form>
  32.                 </div>
  33.             </div>
  34.             <div class="row ml-3">
  35.                 <c:forEach items="${products}" var="p" varStatus="vs">
  36.                     <div class="col-2 border border-primary rounded mx-2 my-3">
  37.                         <div class="img-thumbnail border-0">
  38.                             <img src="model-images/${p.productlines.productLine}/${p.productCode}.jpg" height="100" width="148"/>
  39.                         </div>
  40.                         <div style="font-size: 0.7em; white-space: nowrap; text-overflow: ellipsis; overflow: hidden;width: 200px;">${p.productName}</div>
  41.                     </div>
  42.                 </c:forEach>
  43.             </div>
  44.         </div>
  45.     </body>
  46. </html>
Add Comment
Please, Sign In to add comment