public class

Script

extends ActionSupport
implements ParameterAware
java.lang.Object
   ↳ webwork.action.ActionSupport
     ↳ webwork.action.standard.Script

Class Overview

Script execution wrapper.

See Also

Summary

[Expand]
Inherited Constants
From interface webwork.action.Action
[Expand]
Inherited Fields
From class webwork.action.ActionSupport
Public Constructors
Script()
Public Methods
String execute()
Execute will first check the request for a result exception.
Map getResults()
URL getScriptURL()
void setParameters(Map parameters)
void setScript(String scriptName)
Protected Methods
String getScriptContent(URL scriptUrl)
BSFEngine getScriptingEngine()
String handleException(Exception e)
void registerVariables()
[Expand]
Inherited Methods
From class webwork.action.ActionSupport
From class java.lang.Object
From interface webwork.action.Action
From interface webwork.action.IllegalArgumentAware
From interface webwork.action.ParameterAware

Public Constructors

public Script ()

Public Methods

public String execute ()

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().

Returns
  • view
Throws
Exception

public Map getResults ()

public URL getScriptURL ()

public void setParameters (Map parameters)

public void setScript (String scriptName)

Protected Methods

protected String getScriptContent (URL scriptUrl)

Throws
IOException

protected BSFEngine getScriptingEngine ()

Throws
BSFException

protected String handleException (Exception e)

protected void registerVariables ()

Throws
BSFException