org.davesag.generica.controller
Interface Controller

All Known Subinterfaces:
ActionController, Actor, Creator, Deleter, FormController, HomepageChooser, Lister, Loader, PasswordHelperController, Presenter, Saver, Summariser, TargetActor, UploadController, UserLoginController, UserRegistrationController
All Known Implementing Classes:
AbstractActionController, AbstractController, AbstractUserProfileController, GenericContentSelector, SimpleUploadController

public interface Controller

Controller implementations provide the core business logic for the Struts forms and actions. By delegating the work to controllers we reduce the complexity of the forms and actions themselves and allow the business logic to be captured in one spot. Controllers are dynamically loaded by the actions and forms so updating business logic can be a simple matter of adding a new jar with the right controllers, and updating the struts-config.xml file.

Since:
Generica 1.0
Version:
CVS Revision $Id: Controller.java,v 1.3 2004/03/30 10:12:56 norm Exp $
Author:
Dave Sag http://www.davesag.com

Method Summary
 void setForm(ActionForm form)
          Sets the form containing user data.
 void setRequest(HttpServletRequest request)
          Sets the servlet request.
 void setResponse(HttpServletResponse response)
          Sets the servlet response.
 

Method Detail

setRequest

public void setRequest(HttpServletRequest request)
Sets the servlet request.

Parameters:
request - The incoming request.

setResponse

public void setResponse(HttpServletResponse response)
Sets the servlet response.

Parameters:
response - The outgoing response.

setForm

public void setForm(ActionForm form)
Sets the form containing user data.

Parameters:
form - The form holding the user information.


Dave Sag Generica API version 0.5.9 - (prerelease) Copyright 2003 - 2004 Dave Sag.