ShowUser.jsp

<%@ page language="java" contentType="text/html; charset=ISO-8859-1" pageEncoding="ISO-8859-1"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>Informazioni utente salvate su file</title>
</head>
<body>
<h1>Dati utente</h1>

<p>Ecco le informazioni relative all'utente inserito:</p>

<jsp:useBean id="user" scope="session" class="business.User">
</jsp:useBean>

<table cellspacing="5" cellpadding="5" border="1">
  <tr>
    <td align="right">Nome:</td>
    <td><jsp:getProperty name="user" property="nome" /></td>
  </tr>
  <tr>
    <td align="right">Cognome:</td>
    <td><jsp:getProperty name="user" property="cognome" /></td>
  </tr>
  <tr>
    <td align="right">Età:</td>
    <td><jsp:getProperty name="user" property="eta" /></td>
  </tr>
</table>

<p>Per inserire un nuovo utente, cliccare sul pulsante Back <br />
del browser oppure sul pulsante Nuovo Inserimento <br />
in basso.</p>

<form action="index.html" method="post">
  <input type="submit" value="Nuovo Inserimento" />
</form>

</body>
</html>