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

Home.java

Go to the documentation of this file.
00001 import java.io.PrintWriter;
00002 import java.io.IOException;
00003 import javax.servlet.http.HttpServlet;
00004 import javax.servlet.http.HttpServletRequest;
00005 import javax.servlet.http.HttpServletResponse;
00006 import javax.servlet.ServletException;
00007 
00008 public class Home extends HttpServlet
00009 {
00010   public void doGet(HttpServletRequest req, HttpServletResponse res)
00011     throws ServletException, IOException
00012   {
00013     res.setContentType("text/html");
00014     PrintWriter pw = res.getWriter();
00015 
00016     try
00017     {
00018       Page p = new Page(req,res,pw);
00019       p.top("Home");
00020       pw.print(
00021 "\n"+
00022 "<p><img align=left src=\"" + Page.STATIC_PATH + "doc.jpg\" width=118 height=225 alt=doctor>\n"+
00023 "Welcome to the home page of our web application. You can use the links at the left to get\n"+
00024 "started with the application, or you can read the project specification that we originally\n"+
00025 "submitted (with all the original typos) below.</p>\n"+
00026 "\n"+
00027 "<p>Russell Yanofsky (<a href=\"mailto:rey4@columbia.edu\">rey4@columbia.edu</a>)<br>\n"+
00028 "Felix Candelario (<a href=\"mailto:frc9@columbia.edu\">frc9@columbia.edu</a>)</p>\n"+
00029 "\n"+
00030 "<h3>Project Specification</h3>\n"+
00031 "<p>\n"+
00032 "We were so enchanted by the doctor's office example from homework 1 that we've decided to implement it for out database project. We want to make a an internal web site that could be used in a doctors office by doctors & their staff to keep track of patient appointments and patient information. Three obvious entities would be patients, doctors, and appointments. For each appointment we want to keep track of referrals to and from other doctors and practices. For instance if one of our doctors decides to refer a patient to a specialist after an appointment, that information would be stored. And if an appointment was a result of a referral from another doctor that information would be stored as well. To do this we would add a table of referrals and a table of information about other practices. For billing purposes, there would be a table of services that hold prices (or just descriptions) of appointments, procedures, tests and so on. As in the example, we will let doctors enter in specific diagnoses about patients for each appointment, and we will have tables to keep track of insurance companies and policies. The main parts of the interface will a page to add, edit and display appointments, a page to enter information about patients, and a simple table editor that will allow changes to the doctors, practices, services, and insurance tables. Since this information will be change less often, it does not need a more complicated interface.\n"+
00033 "</p>\n"+
00034 ""
00035       );
00036       p.bottom();
00037     }
00038     catch (Throwable t)
00039     {
00040       Widget.ShowException(t, pw);
00041     }
00042   }
00043 }

Generated on Mon Mar 6 23:34:34 2006 by  doxygen 1.4.4