You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@struts.apache.org by bu...@apache.org on 2004/04/27 01:59:47 UTC

DO NOT REPLY [Bug 28609] New: - Scriptable Actions Support

DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=28609>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=28609

Scriptable Actions Support

           Summary: Scriptable Actions Support
           Product: Struts
           Version: Nightly Build
          Platform: Other
        OS/Version: All
            Status: NEW
          Severity: Enhancement
          Priority: Other
         Component: Standard Actions
        AssignedTo: dev@struts.apache.org
        ReportedBy: mrdon@twdata.org


This patch brings the Struts BSF project, http://struts.sf.net/struts-bsf, into
Struts core as an optional, built-in action.  It provides ScriptAction which
uses the Bean Scripting Framework, http://jakarta.apache.org/bsf, to allow the
developer to implement Struts actions using any scripting language supported by
BSF including Jython, Rhino (JavaScript), BeanShell, JRuby, and Groovy.

Feature list:
    * Implement Actions with JavaScript, BeanShell, etc.
    * Supports all BSF languages
    * Scripts cached in memory on first use
    * Ability to pass parameters to script through Struts config
    * Can define custom filters to make business objects easily available

This patch requires the addition of the BSF jar, which of course is only needed
by the user if they choose to use ScriptAction.  It also brings with it a small
framework for adding "filters" to put business objects into the context, among
other uses.  A similiar and more capable functionality exists in the
VelocityTools project, but in its absence in Struts core, this should suffice. 
I added a "bsf" package under o.a.s.actions because of the extra filter files.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@struts.apache.org
For additional commands, e-mail: dev-help@struts.apache.org