|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.struts.action.Action
uk.ac.ebi.intenz.webapp.controller.modification.CurationAction
uk.ac.ebi.intenz.webapp.controller.common.FormButtonAction
public class FormButtonAction
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.
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 |
---|
public FormButtonAction()
Method Detail |
---|
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
execute
in class CurationAction
mapping
- The ActionMapping as defined in strust-config.xml
form
- The ActionForm attached to this Action.request
- The request object.response
- The response object.
Exception
- forward exceptions
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |