net.spy.jwebkit.struts
Class BSHAction

java.lang.Object
  extended by org.apache.struts.action.Action
      extended by net.spy.jwebkit.struts.JWebAction
          extended by net.spy.jwebkit.struts.ScriptAction
              extended by net.spy.jwebkit.struts.BSHAction

public class BSHAction
extends ScriptAction

A struts action to execute bsh scripts for action handlers.


Field Summary
 
Fields inherited from class org.apache.struts.action.Action
defaultLocale, servlet
 
Constructor Summary
BSHAction()
           
 
Method Summary
protected  java.lang.String getExtension()
          Get the extension for BSH scripts.
protected  org.apache.struts.action.ActionForward spyExecute(org.apache.struts.action.ActionMapping mapping, org.apache.struts.action.ActionForm form, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
          Execute the mapped script.
 
Methods inherited from class net.spy.jwebkit.struts.ScriptAction
getPathToScript
 
Methods inherited from class net.spy.jwebkit.struts.JWebAction
execute, getLogger, spyCancel
 
Methods 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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BSHAction

public BSHAction()
Method Detail

getExtension

protected java.lang.String getExtension()
Get the extension for BSH scripts.

Specified by:
getExtension in class ScriptAction
Returns:
".bsh"

spyExecute

protected org.apache.struts.action.ActionForward spyExecute(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
Execute the mapped script.

Specified by:
spyExecute in class JWebAction
Parameters:
mapping - the mapping
form - the form
request - the request
response - the response
Returns:
the ``next-hop'' forward
Throws:
java.lang.Exception - if there's a problem with the action


Copyright © 1995-2007 SPY Internetworking. All Rights Reserved.