response.setContentType("text/html");
PrintWriter out = response.getWriter();
out.println("<html>");
out.println("<head>");
out.println("<title>Oracle Cached Connection " +
"Implementation Report Servlet</title>");
out.println("</head>");
out.println("<body>");
out.println(
"<h1>Oracle Cached Connection Implementations</h1>");
out.println("<pre>");
String[] lines = OCCIConnection.getReport();
if (lines != null && lines.length > 0) {
for (int i=0;i < lines.length;i++) {
out.println(lines[i]);
}
}
else
out.println("No caches implemented!");
out.println("</pre>");
out.println("</body>");
out.println("</html>");