exampleTwo.jsp 1.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. <%@ page contentType="text/html;charset=UTF-8" language="java" %>
  2. <%@taglib uri="http://www.springframework.org/tags/form" prefix="form"%>
  3. <%@taglib uri="http://www.springframework.org/tags" prefix="spring"%>
  4. <%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
  5. <html>
  6. <head> <title><spring:message code="label.addCar"/></title> </head>
  7. <body>
  8. <div class="header">
  9. <span style="float: right">
  10. <a style="background-color: white" href="?lang=pl">pl</a> | <a style="background-color: white" href="?lang=en">en</a> | <a style="background-color: white" href="?lang=de">de</a>
  11. </span>
  12. </div>
  13. <h1>Add car info:</h1>
  14. <h3><spring:message code="label.userList"/></h3>
  15. <c:if test="${!empty appCarList}">
  16. <table class="data">
  17. <tr>
  18. <th><spring:message code="label.brandName"/></th>
  19. <th><spring:message code="label.modelName"/></th>
  20. <th><spring:message code="label.bodyType"/></th>
  21. <th><spring:message code="label.productionYear"/></th>
  22. <th><spring:message code="label.carColor"/></th>
  23. <th><spring:message code="label.fuelType"/></th>
  24. <th><spring:message code="label.engineSize"/></th>
  25. <th><spring:message code="label.mileage"/></th>
  26. <th><spring:message code="label.power"/></th>
  27. <th><spring:message code="label.Vin"/></th>
  28. </tr>
  29. <c:forEach items="${appCarList}" var="appCar">
  30. <tr>
  31. <td>${appCar.brandName} </td>
  32. <td>${appCar.modelName} </td>
  33. <td>${appCar.bodyType}</td>
  34. <td>${appCar.productionYear}</td>
  35. <td>${appCar.carColor} </td>
  36. <td>${appCar.fuelType} </td>
  37. <td>${appCar.engineSize}</td>
  38. <td>${appCar.mileage}</td>
  39. <td>${appCar.power}</td>
  40. <td>${appCar.vin}</td>
  41. </tr>
  42. </c:forEach>
  43. </table>
  44. </c:if>
  45. </body>
  46. </html>