Class FileUploadAction
java.lang.Object
org.apache.struts.action.Action
org.dlese.dpc.schemedit.ndr.action.FileUploadAction
public class FileUploadAction
extends org.apache.struts.action.Action
Struts Action to control the uploading of primary content into an NDR
instance. Accepts request parameter "forwardPath", which (if present) will
cause successful uploads to forward to that path (context-sensitive). This
enables this action to be used in a variety of situations, such as
"inputHelpers" that can specify a "forwardPath" and thus control the overall
behaviour of the upload process.
- Author:
- Jonathan Ostwald
-
Field Summary
Fields inherited from class org.apache.struts.action.Action
defaultLocale, servlet -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.apache.struts.action.ActionForwardexecute(org.apache.struts.action.ActionMapping mapping, org.apache.struts.action.ActionForm form, HttpServletRequest request, HttpServletResponse response) NOT YET DOCUMENTEDstatic voidsetDebug(boolean isDebugOutput) Sets the debug attribute of the NDRAction classMethods 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, saveErrors, saveMessages, saveMessages, saveToken, setLocale, setServlet
-
Constructor Details
-
FileUploadAction
public FileUploadAction()
-
-
Method Details
-
execute
public org.apache.struts.action.ActionForward execute(org.apache.struts.action.ActionMapping mapping, org.apache.struts.action.ActionForm form, HttpServletRequest request, HttpServletResponse response) throws Exception NOT YET DOCUMENTED- Overrides:
executein classorg.apache.struts.action.Action- Parameters:
mapping- the ActionMappingform- the ActionFormrequest- the Requestresponse- the Response- Returns:
- NOT YET DOCUMENTED
- Throws:
Exception- NOT YET DOCUMENTED
-
setDebug
public static void setDebug(boolean isDebugOutput) Sets the debug attribute of the NDRAction class- Parameters:
isDebugOutput- The new debug value
-