Main Page | Class Hierarchy | Alphabetical List | Class List | File List | Class Members | File Members

Tables Class Reference

List of all members.

Public Member Functions

void doPost (HttpServletRequest req, HttpServletResponse res) throws ServletException, IOException
void doGet (HttpServletRequest req, HttpServletResponse res) throws ServletException, IOException

Detailed Description

Definition at line 8 of file Tables.java.


Member Function Documentation

void Tables::doGet HttpServletRequest  req,
HttpServletResponse  res
throws ServletException, IOException [inline]
 

Definition at line 16 of file Tables.java.

References Page::bottom(), Form::disconnectDb(), TableEditor::display(), TableEditor::loadValues(), and Page::top().

00018   {
00019     res.setContentType("text/html");
00020     PrintWriter pw = res.getWriter();
00021 
00022     Form f = new Form(req, res, pw, DoctorDb.getSingleton());
00023     try
00024     {
00025       TableEditor te = new TableEditor("pl", f);
00026       te.loadValues();
00027       Page p = new Page(req,res,pw);
00028       p.top("Table Editor");
00029       pw.println("<form method=post>");
00030       te.display();
00031       pw.println("</form>");
00032       p.bottom();
00033     }
00034     catch (Throwable t)
00035     {
00036       Widget.ShowException(t, pw);
00037     }
00038     finally
00039     {
00040       f.disconnectDb();
00041     }
00042   }

void Tables::doPost HttpServletRequest  req,
HttpServletResponse  res
throws ServletException, IOException [inline]
 

Definition at line 10 of file Tables.java.

References doGet().

00012   {
00013     doGet(req, res);
00014   }


The documentation for this class was generated from the following file:
Generated on Mon Mar 6 23:34:35 2006 by  doxygen 1.4.4