uk.ac.ebi.intenz.webapp.controller.common
Class FormButtonAction

java.lang.Object
  extended by org.apache.struts.action.Action
      extended by uk.ac.ebi.intenz.webapp.controller.modification.CurationAction
          extended by uk.ac.ebi.intenz.webapp.controller.common.FormButtonAction

public class FormButtonAction
extends CurationAction

This Action handles all button events apart from submit buttons.

Before the actual button command is being processed the enzyme ActionForm (EnzymeDTO) is validated. This is done in addition to the form validations performed by the Struts environment to be able to compare a field value with other field values of the form. These validation are done by methods provided by the IntEnzValidations class, which acts as a central container for validations needed by the IntEnz curator web application.

The button actions which are supported at the moment are:

ActionMessages are being created if any errors occur during the execution of this Action. These messages will then be displayed on the form.

Furthermore this Action will check and set tokens to keep the session in a defined state.

Version:
$Revision: 1.8 $ $Date: 2008/05/30 15:27:54 $
Author:
Michael Darsow

Field Summary
 
Fields inherited from class org.apache.struts.action.Action
defaultLocale, servlet
 
Constructor Summary
FormButtonAction()
           
 
Method Summary
 org.apache.struts.action.ActionForward execute(org.apache.struts.action.ActionMapping mapping, org.apache.struts.action.ActionForm form, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
          Executes the command as described in the class comment.
 
Methods inherited from class uk.ac.ebi.intenz.webapp.controller.modification.CurationAction
keepToken
 
Methods inherited from class org.apache.struts.action.Action
addErrors, addMessages, execute, generateToken, getDataSource, getDataSource, getErrors, getLocale, getMessages, getResources, getResources, getServlet, isCancelled, isTokenValid, isTokenValid, resetToken, 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
 

Constructor Detail

FormButtonAction

public FormButtonAction()
Method Detail

execute

public org.apache.struts.action.ActionForward execute(org.apache.struts.action.ActionMapping mapping,
                                                      org.apache.struts.action.ActionForm form,
                                                      javax.servlet.http.HttpServletRequest request,
                                                      javax.servlet.http.HttpServletResponse response)
                                               throws Exception
Executes the command as described in the class comment.

Overrides:
execute in class CurationAction
Parameters:
mapping - The ActionMapping as defined in strust-config.xml
form - The ActionForm attached to this Action.
request - The request object.
response - The response object.
Returns:
an ActionForward object.
Throws:
Exception - forward exceptions


Copyright © 2013 EMBL-EBI. All Rights Reserved.