Advertisement
NexGenration

Untitled

Feb 12th, 2021
865
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
HTML 2.93 KB | None | 0 0
  1.  
  2. <!-- Header -->
  3. <jsp:include page="header.jsp" />
  4.  
  5. <!-- JSTL includes -->
  6. <%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
  7. <%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt"%>
  8. <%@ taglib uri="http://java.sun.com/jsp/jstl/functions" prefix="fn"%>
  9.  
  10. <!--    Just some stuff you need -->
  11. <header>
  12.     <div class="container">
  13.  
  14.         <c:choose>
  15.             <c:when test="${not empty message }">
  16.                 <p class="alert ${messageClass}">${message }</p>
  17.                 <%
  18.                     session.setAttribute("message", null);
  19.                 session.setAttribute("messageClass", null);
  20.                 %>
  21.             </c:when>
  22.         </c:choose>
  23.  
  24.         <h1>
  25.             PUBHUB <small>Book Details - ${book.isbn13 }</small>
  26.         </h1>
  27.         <hr class="book-primary">
  28.  
  29.         <form action="UpdateBook" method="post" class="form-horizontal">
  30.  
  31.             <input type="hidden" class="form-control" id="isbn13" name="isbn13"
  32.                 required="required" value="${book.isbn13 }" />
  33.  
  34.             <div class="form-group">
  35.                 <label for="title" class="col-sm-4 control-label">Title</label>
  36.                 <div class="col-sm-5">
  37.                     <input type="text" class="form-control" id="title" name="title"
  38.                         placeholder="Title" required="required" value="${book.title }" />
  39.                 </div>
  40.             </div>
  41.             <div class="form-group">
  42.                 <label for="author" class="col-sm-4 control-label">Author</label>
  43.                 <div class="col-sm-5">
  44.                     <input type="text" class="form-control" id="author" name="author"
  45.                         placeholder="Author" required="required" value="${book.author }" />
  46.                 </div>
  47.             </div>
  48.             <div class="form-group">
  49.                 <label for="price" class="col-sm-4 control-label">Price</label>
  50.                 <div class="col-sm-5">
  51.                     <input type="number" step="0.01" class="form-control" id="price"
  52.                         name="price" placeholder="Price" required="required"
  53.                         value="${book.price }" />
  54.                 </div>
  55.             </div>
  56.             <div class="form-group">
  57.                 <div class="col-sm-offset-4 col-sm-1">
  58.                     <button type="submit" class="btn btn-info">Update Book</button>
  59.                 </div>
  60.             </div>
  61.         </form>
  62.         <form action="AddTag" method="post" class="form-horizontal">
  63.  
  64.             <input type="hidden" class="form-control" id="isbn13_2" name="isbn13_2"
  65.                 required="required" value="${book.isbn13}" />
  66.             <div>
  67.                 <label for="tags" class="col-sm-4 control-label">Tags</label>
  68.                 <div class="col-sm-5">
  69.                     <ul>
  70.                         <c:forEach var="tag" items="${tagList}">
  71.                             <li style="text-align: left"><c:out value="${tag.tagName}" /></li>
  72.                         </c:forEach>
  73.                     </ul>
  74.                 </div>
  75.             </div>
  76.             <div class="form-group">
  77.                 <label for="Add Tag" class="col-sm-4 control-label">Add Tag</label>
  78.  
  79.                 <div class="col-sm-5">
  80.                     <input type="text" class="form-control" id="addTag" name="addTag"
  81.                         placeholder="Enter tag name here." />
  82.                 </div>
  83.             </div>
  84.             <div class="form-group">
  85.                 <div class="col-sm-offset-4 col-sm-1">
  86.                     <button type="submit" class="btn btn-info">Add Tag</button>
  87.                 </div>
  88.             </div>
  89.         </form>
  90.     </div>
  91. </header>
  92.  
  93. <!-- Footer -->
  94. <jsp:include page="footer.jsp" />
  95.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement