October 2017
Intermediate to advanced
396 pages
10h 2m
English
The following code renders the view in the MVC pattern:
accountDetails.jsp:
<%@ taglib prefix = "c" uri = "http://java.sun.com/jsp/jstl/core" %>
<html>
<head>
<title>Bank Management System</title>
<link rel="stylesheet" type="text/css" href="<c:url value="/resources/style.css" />" >
</head>
<body>
<h1>${message} Account Details</h1>
<c:if test="${not empty account }">
<table border="1">
<tr>
<td>Account Number</td>
<td>Account Name</td>
<td>Account Balance</td>
</tr>
<tr>
<td>${account.id }</td>
<td>${account.name }</td>
<td>${account.balance }</td>
</tr>
</table>
</c:if>
</body>
</html>
As you can see in the preceding code, Spring MVC renders this view when the controller will be returned accountDetails as the logical ...
Read now
Unlock full access