Hi Guys
I have a bean which handles SQL statements. At the moment the methods do not return anything to the servlet, but I was thinking, if an error occurs whilst the statement is running then how should I inform the user to tell him an error has occured? Here is one of my current methods:
public void executeUpdate(String Query) {
try {
stmt.executeUpdate( Query );
} catch(SQLException e) { System.out.println("Exception : "+ e.getMessage()); }
}