uikolas

Untitled

Oct 11th, 2014
267
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 2.03 KB | None | 0 0
  1. <%--
  2.     Document   : index
  3.     Created on : Nov 11, 2013, 12:55:32 PM
  4.     Author     : ENQ
  5. --%>
  6. <%@page contentType="text/html" pageEncoding="UTF-8"%>
  7. <%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
  8. <!DOCTYPE html>
  9. <html>
  10. <head>
  11.     <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
  12.     <title>Forma</title>
  13.     <link rel="stylesheet" href="http://netdna.bootstrapcdn.com/bootstrap/3.0.3/css/bootstrap.min.css" />
  14. </head>
  15.     <body align="center">
  16.         <div class="container">
  17.             <form action="/jlab1" method="POST">           
  18.                 <div class="form-group">
  19.                     <label>Vardas:</label>
  20.                     <input type="text" class="form-control" name="name" />
  21.                 </div>
  22.                 <div class="form-group">
  23.                     <label>Komentaras:</label>
  24.                     <input type="text" class="form-control" name="message" />
  25.                 </div>
  26.                 <input type="submit" value="Siųsti" class="btn btn-primary" />              
  27.             </form>
  28.             <br />
  29.             <c:if test="${not empty msg}">
  30.                 <div class="alert alert-danger">
  31.                     <jsp:getProperty name="msg" property="name"/>:
  32.                     <jsp:getProperty name="msg" property="msg"/>
  33.                 </div>
  34.             </c:if>
  35.             <table class="table" id="messageTable">
  36.             <tr >
  37.                 <th>ID</th>
  38.                 <th>Vardas</th>
  39.                 <th>Komentaras</th>
  40.                 <th>Data</th>
  41.             </tr>
  42.                 <c:if test="${not empty msg_list}">
  43.                     <c:forEach var="m" begin="0" items="${msg_list}">
  44.                     <tr>
  45.                         <td>${m.id}</td>
  46.                         <td>${m.name}</td>
  47.                         <td>${m.message}</td>
  48.                         <td>${m.time}</td>
  49.                     </tr>
  50.                     </c:forEach>
  51.                 </c:if>
  52.             </table>
  53.         </div>
  54.     </body>
  55. </html>
Advertisement
Add Comment
Please, Sign In to add comment