Main Page | Class List | Directories | Class Members

com.forum.nokia.taskmanager.webui.Controller Class Reference

List of all members.

Public Member Functions

void init ()
void destroy ()

Protected Member Functions

void doGet (HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException
void doPost (HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException

Detailed Description

This servlet acts as the controller in the system. The system implements the MVC (or Java Model 2) architecture, meaning that model (data storage), view (the look and feel of the system) and controller (decides the flow of operations) are separated from one another.

This servlets responsibility is to direct the user to the correct page and to make queries to the database and validate the user input.


Member Function Documentation

void com.forum.nokia.taskmanager.webui.Controller.destroy  ) 
 

This method is called when the Controller object is about to be destroyed. It ensures the DBAO's connection is terminated after it is no longer needed.

void com.forum.nokia.taskmanager.webui.Controller.doGet HttpServletRequest  request,
HttpServletResponse  response
throws ServletException, IOException [protected]
 

This function is called when a GET method is received from the client. It merely forwards the call to doPost.

void com.forum.nokia.taskmanager.webui.Controller.doPost HttpServletRequest  request,
HttpServletResponse  response
throws ServletException, IOException [protected]
 

This function is called when a GET method is received from the client. It identifies the action request from the client and calls the function that realizes the action. It then dispatches the request to the correct JSP page.

void com.forum.nokia.taskmanager.webui.Controller.init  ) 
 

This method is executed when the Controller object is instantiated. It makes sure a DBAO can be found or that at least an error flag is raised.


The documentation for this class was generated from the following file:
Generated on Tue Aug 30 14:22:36 2005 for TaskManagerWebUI by  doxygen 1.4.4