This image shows the sequence of events that occurs when you remove benefits from an employee.
- The client sends a request to the Controller servlet
- The Controller calls the getInstance and createActionHandler methods on the
ActionHandlerFactory and calls the performAction method on the RemoveBenefitFromEmployee.
- If the benefits parameter is equal to null:
- RemoveBenefitFromEmployee forwards the request to the removeBenefitFromEmployee JSP.
- The removeBenefitFromEmployee JSP calls getEmployeeManager on the SessionHelper, getDetails
on the Employee entity bean, and getBenefits on the EmployeeModel.
- Once the information is gathered, the JSP sends the response back to the client.
- If the benefits parameter is not equal to null:
- RemoveBenefitFromEmployee calls getEmployeeManager on the SessionHelper,
getEmployee on the EmployeeManager, and removeBenefits on the Employee
entity bean.
- If successful, RemoveBenefitFromEmployee forwards the request to the success.jsp page,
which returns a success message to the client.