Buongiorno a tutti, premesso che non so programmare, ho bisogno di far uscire in una pagina jsp collegata al mio db access, tutti i miei campi di tipo "data" in formato italiano gg/mm/aaaa anzichè in quello americano.
il codice che sto usando è:
<%@ page import="java.io.*,java.util.*,java.sql.*,java.sql. Date" %>
<%@ page session="false" %>
<html>
<head>
<title>2009 Valutazioni di Compatibilità con il PTCP e Valutazione Ambientale</title>
<link rel="stylesheet" type="text/css" href="stile_istruttorie.css">
</head>
<body>
<h1>2009 Valutazioni di Compatibilità con il PTCP e Valutazioni Ambientali</h1>
<table border="1" class="tit" align="center" >
<tr><td width="100px">Protocollo</td>
<td width="100px">Ente/Proponente</td>
<td width="100px">Tipo istruttoria</td>
<td width="100px">Descrizione pratica</td>
<td width="100px">Responsabile di procedimento</td>
<td width="80px">Data ricevimento</td>
<td width="80px">Data convocazione conferenza SUAP</td>
<td width="80px">Termine istruttoria</td>
<td width="80px">Termine istruttoria tecnica</td>
<td width="80px">Scadenza adempimento GdL</td>
<td width="100px">Note Scadenza adempimento GdL</td>
<td width="80px">Data confronto GdL</td>
<td width="100px">Necessità Confronto con il Comune</td>
<td width="80px">Data confronto con il Comune</td>
<td width="80px">Data Commissione Territorio</td>
<td width="80px">Data Giunta</td>
<td width="380px">Note generali</td>
</tr>
</table>
<%
Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
Connection connection=DriverManager.getConnection("jdbc:odbcr iver={Microsoft Access Driver (*.mdb)}; DBQ=D:/Dati_arcims/istruttorie_pgt/istruttorie.mdb");
Statement statement = connection.createStatement();
String sql="SELECT * FROM Q_GDL order by Scad_parereGDL";
ResultSet rs = statement.executeQuery(sql);
while(rs.next()){
String Protocollo=rs.getString(1);
String Ente=rs.getString(2);
String Tipo_istr=rs.getString(3);
String pratica=rs.getString(4);
String Resp_proc=rs.getString(5);
Date Pervenuta_il=rs.getDate(6);
Date Data_conv_conf_suap=rs.getDate(7);
Date Termine_istruttoria=rs.getDate(8);
Date Termine_istrut_tecnica=rs.getDate(9);
Date Scad_parereGdL=rs.getDate(10);
String Note_scadenza_parereGdL=rs.getString(11);
Date Data_confrontoGdL=rs.getDate(12);
String Confronto_comune=rs.getString(13);
Date Data_confronto_comune=rs.getDate(14);
Date Data_Commissione_Territorio=rs.getDate(15);
Date Data_Giunta=rs.getDate(16);
String Note=rs.getString(17);
%>
<table border="1" bordercolor="black" align="center" >
<tr>
<td width="100px"><%=Protocollo%></td>
<td width="100px"><%=Ente%></td>
<td width="100px"><%=Tipo_istr%></td>
<td width="100px"><%=pratica%></td>
<td width="100px"><%=Resp_proc%></td>
<td width="80px"><%=Pervenuta_il%></td>
<td width="80px"><%=Data_conv_conf_suap%></td>
<td width="80px"><%=Termine_istruttoria%></td>
<td width="80px"><%=Termine_istrut_tecnica%></td>
<td width="80px"><%=Scad_parereGdL%></td>
<td width="100px"><%=Note_scadenza_parereGdL%></td>
<td width="80px"><%=Data_confrontoGdL%></td>
<td width="100px"><%=Confronto_comune%></td>
<td width="80px"><%=Data_confronto_comune%></td>
<td width="80px"><%=Data_Commissione_Territorio%></td>
<td width="80px"><%=Data_Giunta%></td>
<td width="380px"><%=Note%></td>
</tr>
</table>
<%
}
connection.close();
%>
</body>
</html> Grazie a chi avrà la pazienza di aiutarmi.