java.lang.Object
org.apache.struts.action.Action
com.RuntimeCollective.questionnaire.action.EditQuestionnaireAction
- public class EditQuestionnaireAction
- extends org.apache.struts.action.Action
Implementation of Action to modify a questionnaire (proposed replacement for EditQuestionnaireAction but not fully checked for compatibility).
- Version:
- $Id: EditQuestionnaireAction.java,v 1.6 2003/09/30 15:12:53 joe Exp $
| Methods inherited from class org.apache.struts.action.Action |
addErrors, addMessages, execute, execute, generateToken, getDataSource, getDataSource, getErrors, getLocale, getMessages, getResources, getResources, getServlet, isCancelled, isTokenValid, isTokenValid, resetToken, saveErrors, saveErrors, saveErrors, saveMessages, saveMessages, saveToken, setLocale, setServlet |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
EditQuestionnaireAction
public EditQuestionnaireAction()
perform
public org.apache.struts.action.ActionForward perform(org.apache.struts.action.ActionMapping mapping,
org.apache.struts.action.ActionForm form,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
throws java.io.IOException,
javax.servlet.ServletException
- Create a new Questionnaire, or edit or delete an existing one,
depending on the value of ClassForm.action property.
The following Forwards are returned:
failure - local forward to go to if there was a problem editing the class.
success - local forward to go to if the edition was successful.
votesCast - local forward to go to if choices cannot be removed,
because votes have already been cast (or "failure" if no "votesCast" forward exists)
cancel - local forward to go to if the edition was cancelled.
The following error messages are returned:
error.db.connection - if there was a problem connecting to the database.