commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jason Horman <jhor...@musicmatch.com>
Subject [jelly] scripting
Date Fri, 27 Sep 2002 22:14:28 GMT
1. If the BeanShell JellyInterpreter (and BSF) would pass the "jellyContext"
to the beanshell then scripts could update the context.
 
diff -r1.5 JellyInterpreter.java
95a96,97
> 
>         set( "jellyContext" , context );

2. A "script" or "bsh" tag would be cool, something simple like this:
 
public class BSHTag extends TagSupport {
    private BeanShellExpressionFactory factory = new
BeanShellExpressionFactory();
 
    public void doTag(XMLOutput xmlOutput) throws Exception {
        Expression exp = factory.createExpression(getBodyText(true));
        exp.evaluate(context);
    }
}

that would allow me to do this:
 
    <bsh>
        System.out.println("hi");
    </bsh>

This email message and any attachments are for the sole use of the intended
recipient(s) and may contain confidential and privileged information. Any
unauthorized review, use, disclosure or distribution is prohibited. If you
are not the intended recipient or his/her representative, please contact the
sender by reply email and destroy all copies of the original message.

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message