correggi questo tuo codice
codice:
<%
try{Class.forName("com.mysql.jdbc.Driver").newInstance();}
catch(ClassNotFoundException e){out.print("errore "+e);}
try{Connection con = DriverManager.getConnection("jdbc:mysql://localhost:3306/voli","root","bari");}
catch(SQLException ex) {out.print("errore " +ex);}
%>
con
codice:
<%
try{Class.forName("com.mysql.jdbc.Driver");}
catch(ClassNotFoundException e){out.print("errore "+e);}
try{Connection con = DriverManager.getConnection("jdbc:mysql://localhost/voli","root","bari");}
catch(SQLException ex) {out.print("errore " +ex);}
%>
ma oltre a status 500, ti da anche una serie di eccezioni? (sarebbero le tue out.print nei catch)... se si, puoi postarle?