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 >
Text File  |  2001-04-02  |  1KB  |  55 lines

  1. <%--visStudente.jsp
  2.   Stampa i dati di un studente
  3. --%>
  4. <%@ page errorPage="/jsp/error.jsp" %>
  5.  
  6. <%@ page import="StudenteBean" %>
  7. <%@ page import="java.text.DateFormat" %>
  8. <%@ page import="java.util.Locale" %>
  9.  
  10.  
  11. <%! DateFormat df = DateFormat.getDateInstance(DateFormat.SHORT, Locale.ITALY); %>
  12.  
  13. <jsp:useBean id="studente" class="StudenteBean" scope="request" />
  14.  
  15. <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
  16.       "http://www.w3.org/TR/REC-html40/loose.dtd">
  17.  
  18. <html>
  19. <head>
  20.   <title>
  21.     Gestione studenti
  22.   </title>
  23.   <base href="<%= request.getScheme() %>://<%= request.getServerName()%>:<%= request.getServerPort() %><%= request.getContextPath() %>/">
  24. </head>
  25.  
  26. <body>
  27.   <h1>Studente matricola <jsp:getProperty name="studente" property="matricola" /></h1>
  28.  
  29. <strong>Cognome:</strong> 
  30. <jsp:getProperty name="studente" property="cognome" />
  31. <br>
  32.  
  33. <strong>Nome:</strong>
  34. <jsp:getProperty name="studente" property="nome" />
  35. <br>
  36.  
  37. <strong>Facoltà:</strong>
  38. <jsp:getProperty name="studente" property="facolta" />
  39. <br>
  40.  
  41. <strong>Data di nascita:</strong>
  42. <%= df.format(studente.getDataNascita()) %>
  43. <br>
  44.  
  45. <strong>Crediti ottenuti:</strong>
  46. <jsp:getProperty name="studente" property="creditiOttenuti" />
  47. <br>
  48.  
  49.   <p>
  50.   <a href="http://validator.w3.org/check/referer">Valida il documento</a>
  51.   </p>
  52.  
  53. </body>
  54. </html>
  55.