org.activemath.webapp.survey
Class SurveyController

java.lang.Object
  extended by org.infohazard.maverick.ctl.Throwaway2
      extended by org.infohazard.maverick.ctl.ThrowawayBean2
          extended by org.activemath.webapp.base.ControllerBase
              extended by org.activemath.webapp.survey.SurveyController
All Implemented Interfaces:
Controller

public class SurveyController
extends ControllerBase

This class serves and logs results of survey questionnaires. TODO: - prohibit concurrent access to same logfile - display data, in different formats (XML, CSV, HTML table)


Field Summary
protected static Logger log
           
 
Fields inherited from class org.activemath.webapp.base.ControllerBase
appContext, defaultContentType, JSON, REDIRECT, REDIRECT_LOGIN, request, response, stopwatch
 
Fields inherited from class org.infohazard.maverick.ctl.Throwaway2
ERROR, SUCCESS
 
Constructor Summary
SurveyController()
           
 
Method Summary
protected  String action()
          This is the method you should override to implement application logic.
 void setAction(String value)
           
 void setItemId(String itemId)
           
 void setRequireLogin(boolean value)
           
 void setSurvey(String surveyName)
           
 void setSurveyText(String surveyText)
           
 
Methods inherited from class org.activemath.webapp.base.ControllerBase
addError, addError, enableNoCache, escapeForHtmlSafety, getAccountManager, getAppSession, getCmdName, getCurrentUser, getErrors, getHttpSession, getLanguage, getModel, getOutputFormat, getRequest, getResponse, getSkin, hasErrors, perform, publishControllerEvent, sendError, sendError, sendJson, sendLoginRequired, sendRedirect, sendRedirect, setPasswd, setUser
 
Methods inherited from class org.infohazard.maverick.ctl.ThrowawayBean2
go
 
Methods inherited from class org.infohazard.maverick.ctl.Throwaway2
getCtx, go
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

log

protected static Logger log
Constructor Detail

SurveyController

public SurveyController()
Method Detail

setAction

public void setAction(String value)

setSurvey

public void setSurvey(String surveyName)

setSurveyText

public void setSurveyText(String surveyText)

setItemId

public void setItemId(String itemId)

setRequireLogin

public void setRequireLogin(boolean value)

action

protected String action()
                 throws Exception
Description copied from class: ControllerBase
This is the method you should override to implement application logic.

Overrides:
action in class ControllerBase
Throws:
Exception