Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <%--
- Document : ProductList
- Created on : Aug 6, 2020, 1:25:46 PM
- Author : INT303
- --%>
- <%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
- <%@page contentType="text/html" pageEncoding="UTF-8"%>
- <!DOCTYPE html>
- <html>
- <head>
- <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
- <title>Classic Model : Product List</title>
- <script src="bootstrap-4.5.0-dist/js/bootstrap.min.js" type="text/javascript"></script>
- <link href="bootstrap-4.5.0-dist/css/bootstrap.min.css" rel="stylesheet" type="text/css"/>
- </head>
- <body>
- <div class="container-fluid">
- <div class="row rounded border badge-secondary p-4 pt-2 pb-2">
- <div class="col-2">
- <label class="h4">Product List::</label>
- </div>
- <div class="col-5 ">
- </div>
- <div class="col-5 ">
- <form action="ProductList" method="POST">
- Search product : <input type="text" name="searchParam" value="${param.searchParam}" minlength="3"
- required/>
- <input type="submit" value="search" /><br>
- <span style="color: red">${message}</span>
- </form>
- </div>
- </div>
- <div class="row ml-3">
- <c:forEach items="${products}" var="p" varStatus="vs">
- <div class="col-2 border border-primary rounded mx-2 my-3">
- <div class="img-thumbnail border-0">
- <img src="model-images/${p.productlines.productLine}/${p.productCode}.jpg" height="100" width="148"/>
- </div>
- <div style="font-size: 0.7em; white-space: nowrap; text-overflow: ellipsis; overflow: hidden;width: 200px;">${p.productName}</div>
- </div>
- </c:forEach>
- </div>
- </div>
- </body>
- </html>
Add Comment
Please, Sign In to add comment