%@ page import="medicallogistics.*,java.sql.*,java.util.*" errorPage="" %>
<%
try {
InsuranceDb idb = new InsuranceDb();
ResultSet rs = idb.query();
if (rs!=null) {
out.println("
We accept the following insurances.
");
out.println("");
while (rs.next()) {
try {
out.println("- "+rs.getString("name")+"
");
} catch(Exception e) {out.println(e.getMessage());}
}
out.println("
");
} // if there is group
idb.closeAllConnection();
} catch (Exception e) { // product group list
out.println("Error getting insurance list:"+e.getMessage());
}
%>