lcanals.tc.web
Class PersonalPlanController

lcanals.tc.web.GeneralController
  |
  +--lcanals.tc.web.PersonalPlanController

public class PersonalPlanController
extends GeneralController

Servlet which gets information from POST and process an event. If GET method is received event default is invoked.

To be correctly initialized, Event.properties file must exist and must have, at least, DEFAULT_EVENT and ERROR_EVENT. This file has to be placed in WEB-INF/classes directory.

Accepted parameters in the request are:

The name of the action is given in the PlanEvent.properties file. Each event is associated with an EventHandler class. Each EventHandler class needs different parameters in the request. For example, a line of this file could be like:
MY_EVENT=lcanals.tc.web.event.MyEvent


Fields inherited from class lcanals.tc.web.GeneralController
eventHandlers
 
Constructor Summary
PersonalPlanController()
           
 
Method Summary
 void doGet(lcanals.tc.web.HttpServletRequest request, lcanals.tc.web.HttpServletResponse response)
          Does not get any event, only permforms the default event
 void doPost(lcanals.tc.web.HttpServletRequest request, lcanals.tc.web.HttpServletResponse response)
          Receives the "event" parameter and executes it
 void init()
          Load and instantiates the event handlers according to the Event.properties file
 
Methods inherited from class lcanals.tc.web.GeneralController
processEvent
 

Constructor Detail

PersonalPlanController

public PersonalPlanController()
Method Detail

init

public void init()
          throws javax.servlet.ServletException
Load and instantiates the event handlers according to the Event.properties file
Overrides:
init in class GeneralController

doGet

public void doGet(lcanals.tc.web.HttpServletRequest request,
                  lcanals.tc.web.HttpServletResponse response)
           throws javax.servlet.ServletException,
                  java.io.IOException
Does not get any event, only permforms the default event

doPost

public void doPost(lcanals.tc.web.HttpServletRequest request,
                   lcanals.tc.web.HttpServletResponse response)
            throws javax.servlet.ServletException,
                   java.io.IOException
Receives the "event" parameter and executes it


Luis F. Canals. Supported by www.sourceforge.net