webwork.action.standard
Class Script
java.lang.Object
webwork.action.ActionSupport
webwork.action.standard.Script
- All Implemented Interfaces:
- Action, IllegalArgumentAware, ParameterAware, java.io.Serializable
- public class Script
- extends ActionSupport
- implements ParameterAware
Script execution wrapper.
- Version:
- $Revision: 1.8 $
- Author:
- Rickard Öberg (rickard@middleware-company.com)
- See Also:
- ,
Serialized Form
Methods inherited from class webwork.action.ActionSupport |
addError, addErrorMessage, addIllegalArgumentException, doDefault, doExecute, doValidation, getActionName, getErrorMessages, getErrors, getHasErrorMessages, getHasErrors, getLocale, getPropertyEditorMessage, getText, getTexts, getTexts, invalidInput, invokeCommand, isCommand, setCommand, setErrorMessages, setErrors, validate |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Script
public Script()
setParameters
public void setParameters(java.util.Map parameters)
- Specified by:
setParameters
in interface ParameterAware
execute
public java.lang.String execute()
throws java.lang.Exception
- Description copied from class:
ActionSupport
- Execute will first check the request for a result exception. If one
is found, then it will add its message as an error message and throw
the ResultException. If there no exception is found, then it will
invoke the "command" - invokeCommand(). If we are not invoking a command,
it will call validate() and then doExecute().
- Specified by:
execute
in interface Action
- Overrides:
execute
in class ActionSupport
- Returns:
- view
- Throws:
java.lang.Exception
setScript
public void setScript(java.lang.String scriptName)
getScriptURL
public java.net.URL getScriptURL()
getResults
public java.util.Map getResults()
getScriptContent
protected java.lang.String getScriptContent(java.net.URL scriptUrl)
throws java.io.IOException
- Throws:
java.io.IOException
getScriptingEngine
protected org.apache.bsf.BSFEngine getScriptingEngine()
throws org.apache.bsf.BSFException
- Throws:
org.apache.bsf.BSFException
registerVariables
protected void registerVariables()
throws org.apache.bsf.BSFException
- Throws:
org.apache.bsf.BSFException
handleException
protected java.lang.String handleException(java.lang.Exception e)
Copyright © 2001-2003 WebWork All Rights Reserved.