home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
ftp.disi.unige.it
/
2015-02-11.ftp.disi.unige.it.tar
/
ftp.disi.unige.it
/
pub
/
.person
/
CataniaB
/
teach-act
/
DB3
/
servlet-bean-jsp
/
visStudente.jsp
< prev
next >
Wrap
Text File
|
2001-04-02
|
1KB
|
55 lines
<%--visStudente.jsp
Stampa i dati di un studente
--%>
<%@ page errorPage="/jsp/error.jsp" %>
<%@ page import="StudenteBean" %>
<%@ page import="java.text.DateFormat" %>
<%@ page import="java.util.Locale" %>
<%! DateFormat df = DateFormat.getDateInstance(DateFormat.SHORT, Locale.ITALY); %>
<jsp:useBean id="studente" class="StudenteBean" scope="request" />
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/REC-html40/loose.dtd">
<html>
<head>
<title>
Gestione studenti
</title>
<base href="<%= request.getScheme() %>://<%= request.getServerName()%>:<%= request.getServerPort() %><%= request.getContextPath() %>/">
</head>
<body>
<h1>Studente matricola <jsp:getProperty name="studente" property="matricola" /></h1>
<strong>Cognome:</strong>
<jsp:getProperty name="studente" property="cognome" />
<br>
<strong>Nome:</strong>
<jsp:getProperty name="studente" property="nome" />
<br>
<strong>Facoltà:</strong>
<jsp:getProperty name="studente" property="facolta" />
<br>
<strong>Data di nascita:</strong>
<%= df.format(studente.getDataNascita()) %>
<br>
<strong>Crediti ottenuti:</strong>
<jsp:getProperty name="studente" property="creditiOttenuti" />
<br>
<p>
<a href="http://validator.w3.org/check/referer">Valida il documento</a>
</p>
</body>
</html>