qst č il pezzo di codice java:
codice:
try
{
Connection conn= DriverManager.getConnection(DB_Url);
Statement stmta = conn.createStatement();
ResultSet resu = stmta.executeQuery("SELECT * FROM ARGOMENTI");
while(resu.next())
{
id = resu.getInt("Id_Argomento");
argomento = resu.getString("Descrizione");
}
resu.close();
stmta.close();
conn.close();
}
catch(SQLException ex)
{
System.err.println("SQLException: " + ex.getMessage()) ;
}
poi come salvo i due array in un Resulset?
nella jsp come faccio a utilizzare il Resulset?Mi puoi postare un piccolo esempio?
Grazie e scusami per la mia ignoranza, ma č poco ke tratto Java!!!