Now, the JSP simply become:
b. UMS2.jsp
cat > UMS2.jsp << EOF
<%@page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@page import="java.util.*"%>
<%@page import="db.*"%>
<html>
<% UsersDB db = new UsersDB(); %>
<head>
<title>UMS</title>
<link rel="stylesheet" href="./static/template.css">
</head>
<body>
<h1>Users Management System</h1>
<ul>
<li><b>Name - Mark</b></li>
<% for (UsersDB.User user : db.users) { %>
<li> <%= user.name%> - <%= user.mark%> </li>
<% } %> <li>
<form action="./Users" method="POST">
<input name="name"></input>
<input name="mark"></input>
<button>add</button>
</form>
</li>
</ul>
</body>
</html>
EOF
Nb. It must be necessary to reload the application by using Tomcat admin page.
10 - 16
Java jva jav laurent thiry uha enseignant ensisa ecole school national alsace programmation objet approche mulhouse france java object programming oriented
Java jva jav laurent thiry uha enseignant ensisa ecole school national alsace programmation objet approche mulhouse france java object programming oriented
Java jva jav laurent thiry uha enseignant ensisa ecole school national alsace programmation objet approche mulhouse france java object programming oriented
Java jva jav laurent thiry uha enseignant ensisa ecole school national alsace programmation objet approche mulhouse france java object programming oriented
Java jva jav laurent thiry uha enseignant ensisa ecole school national alsace programmation objet approche mulhouse france java object programming oriented
Java jva jav laurent thiry uha enseignant ensisa ecole school national alsace programmation objet approche mulhouse france java object programming oriented
Java jva jav laurent thiry uha enseignant ensisa ecole school national alsace programmation objet approche mulhouse france java object programming oriented
Java jva jav laurent thiry uha enseignant ensisa ecole school national alsace programmation objet approche mulhouse france java object programming oriented
Java jva jav laurent thiry uha enseignant ensisa ecole school national alsace programmation objet approche mulhouse france java object programming oriented
Java jva jav laurent thiry uha enseignant ensisa ecole school national alsace programmation objet approche mulhouse france java object programming oriented
Java jva jav laurent thiry uha enseignant ensisa ecole school national alsace programmation objet approche mulhouse france java object programming oriented