uk.ac.ebi.intact.application.editor.struts.action.interaction
Class SubmitAction

java.lang.Object
  |
  +--org.apache.struts.action.Action
        |
        +--org.apache.struts.actions.DispatchAction
              |
              +--org.apache.struts.actions.LookupDispatchAction
                    |
                    +--uk.ac.ebi.intact.application.editor.struts.framework.AbstractEditorDispatchAction
                          |
                          +--uk.ac.ebi.intact.application.editor.struts.action.SubmitDispatchAction
                                |
                                +--uk.ac.ebi.intact.application.editor.struts.action.interaction.SubmitAction
All Implemented Interfaces:
ForwardConstants

public class SubmitAction
extends SubmitDispatchAction

An action to handle when an Interaction is submitted. This action overrides the submit method of the super class to analyze the the next cause of action to take. If there are no errors, the user is returned to the experiment editor only if we got to the interaction editor came from an experiment.

Version:
$Id: SubmitAction.java,v 1.4 2004/03/30 21:31:04 smudali Exp $
Author:
Sugath Mudali (smudali@ebi.ac.uk)

Field Summary
 
Fields inherited from class uk.ac.ebi.intact.application.editor.struts.framework.AbstractEditorDispatchAction
LOGGER
 
Fields inherited from class org.apache.struts.actions.LookupDispatchAction
keyMethodMap, localeMap
 
Fields inherited from class org.apache.struts.actions.DispatchAction
clazz, log, messages, methods, types
 
Fields inherited from class org.apache.struts.action.Action
ACTION_SERVLET_KEY, APPLICATION_KEY, DATA_SOURCE_KEY, defaultLocale, ERROR_KEY, EXCEPTION_KEY, FORM_BEANS_KEY, FORWARDS_KEY, LOCALE_KEY, MAPPING_KEY, MAPPINGS_KEY, MESSAGE_KEY, MESSAGES_KEY, MULTIPART_KEY, PLUG_INS_KEY, REQUEST_PROCESSOR_KEY, servlet, SERVLET_KEY, TRANSACTION_TOKEN_KEY
 
Fields inherited from interface uk.ac.ebi.intact.application.editor.struts.framework.util.ForwardConstants
EXP, FAILURE, MATCH, NO_MATCH, RESULT, SEARCH, SUCCESS
 
Constructor Summary
SubmitAction()
           
 
Method Summary
 org.apache.struts.action.ActionForward submit(org.apache.struts.action.ActionMapping mapping, org.apache.struts.action.ActionForm form, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
          Action for submitting the edit form.
 
Methods inherited from class uk.ac.ebi.intact.application.editor.struts.action.SubmitDispatchAction
addAnnot, addXref, getKeyMethodMap, save
 
Methods inherited from class uk.ac.ebi.intact.application.editor.struts.framework.AbstractEditorDispatchAction
getIntactUser, getService, getSession, hasErrors
 
Methods inherited from class org.apache.struts.actions.LookupDispatchAction
execute
 
Methods inherited from class org.apache.struts.actions.DispatchAction
dispatchMethod, getMethod, unspecified
 
Methods inherited from class org.apache.struts.action.Action
execute, generateToken, getDataSource, getDataSource, getLocale, getResources, getResources, getResources, getServlet, isCancelled, isTokenValid, isTokenValid, perform, perform, resetToken, saveErrors, saveMessages, saveToken, setLocale, setServlet, toHex
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SubmitAction

public SubmitAction()
Method Detail

submit

public org.apache.struts.action.ActionForward submit(org.apache.struts.action.ActionMapping mapping,
                                                     org.apache.struts.action.ActionForm form,
                                                     javax.servlet.http.HttpServletRequest request,
                                                     javax.servlet.http.HttpServletResponse response)
                                              throws java.lang.Exception
Description copied from class: SubmitDispatchAction
Action for submitting the edit form.

Overrides:
submit in class SubmitDispatchAction
Parameters:
mapping - the ActionMapping used to select this instance
form - the optional ActionForm bean for this request (if any).
request - the HTTP request we are processing
response - the HTTP response we are creating
Returns:
failure mapping for any errors in updating the CV object; search mapping if the update is successful and the previous search has only one result; results mapping if the update is successful and the previous search has produced multiple results.
Throws:
java.lang.Exception - for any uncaught errors.


IntAct Project - EMBL-EBI 2004 - intact-help@ebi.ac.uk