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
/
updStudente.jsp
< prev
next >
Wrap
Text File
|
2001-04-02
|
2KB
|
78 lines
<%--updStudente.jsp
Aggiornamento 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>Aggiornamento studente</h1>
<form method="post" action="servlet/Main?cmd=fai-upd">
<table border="1">
<tr>
<td><strong>Matricola</strong></td>
<td>
<jsp:getProperty name="studente" property="matricola" />
<input type="hidden" name="matricola" value="<%= studente.getMatricola().trim() %>">
</td>
</tr>
<tr>
<td><strong>Cognome</strong> </td>
<td><input type="text" name="cognome" value="<%= studente.getCognome().trim() %>"></td>
</tr>
<tr>
<td><strong>Nome</strong></td>
<td><input type="text" name="nome" value="<%= studente.getNome().trim() %>"></td>
</tr>
<tr>
<td><strong>Facoltà</strong></td>
<td><input type="text" name="facolta" value="<%= studente.getFacolta().trim() %>"></td>
</tr>
<tr>
<td><strong>Data di nascita</strong></td>
<td><input type="text" name="data_nascita" value="<%= df.format(studente.getDataNascita()) %>"></td>
</tr>
<tr>
<td><strong>Crediti ottenuti</strong></td>
<td><input type="text" name="crediti_ottenuti" value="<%= studente.getCreditiOttenuti() %>"></td>
</tr>
<tr><td align="center" colspan="2"><input type="submit" value="Aggiorna"></td></tr>
</table>
</form>
<p>
<a href="http://validator.w3.org/check/referer">Valida il documento</a>
</p>
</body>
</html>