* @see javax.servlet.HttpServlet#doGet(HttpServletRequest, HttpServletResponse)
*/
protected void doGet(HttpServletRequest req, HttpServletResponse response)
throws ServletException, IOException
{
PersistenceBroker broker = null;
try
{
broker = getBroker();
}
catch (Exception ex)
{
throw new IOException(ex.getMessage());
}
response.setContentType("text/html");
PrintWriter writer = response.getWriter();
writeHeader(writer);
writeTable(getProducts(broker), writer);
writeFooter(writer);
broker.close();
}