public class Script extends ActionSupport implements ParameterAware
command, errorMap, errorMessages, log| Constructor and Description |
|---|
Script() |
| Modifier and Type | Method and Description |
|---|---|
String |
execute()
Execute will first check the request for a result exception.
|
Map |
getResults() |
protected String |
getScriptContent(URL scriptUrl) |
protected com.ibm.bsf.BSFEngine |
getScriptingEngine() |
URL |
getScriptURL() |
protected String |
handleException(Exception e) |
protected void |
registerVariables() |
void |
setParameters(Map parameters) |
void |
setScript(String scriptName) |
addError, addErrorMessage, addIllegalArgumentException, doDefault, doExecute, doValidation, getActionName, getCommandName, getErrorMessages, getErrors, getHasErrorMessages, getHasErrors, getLocale, getPropertyEditorMessage, getText, getTexts, getTexts, getTimezone, invalidInput, invokeCommand, isCommand, setCommand, setErrorMessages, setErrors, validatepublic void setParameters(Map parameters)
setParameters in interface ParameterAwarepublic String execute() throws Exception
ActionSupportexecute in interface Actionexecute in class ActionSupportException - thrown if a system level exception occurs. Application level exceptions should be handled by
returning an error value, such as Action.ERROR.public void setScript(String scriptName)
public URL getScriptURL()
public Map getResults()
protected String getScriptContent(URL scriptUrl) throws IOException
IOExceptionprotected com.ibm.bsf.BSFEngine getScriptingEngine()
throws com.ibm.bsf.BSFException
com.ibm.bsf.BSFExceptionprotected void registerVariables()
throws com.ibm.bsf.BSFException
com.ibm.bsf.BSFExceptionCopyright © 2013 Atlassian. All Rights Reserved.