commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "James Strachan" <>
Subject Re: [Jelly] BCEL Taglibrary Beginnings
Date Tue, 21 Jan 2003 20:02:26 GMT
From: "Mark R. Diggory" <>
> I'm interested in the possibility that the BSF Taglibrary code could be
> reused to do this. Possibly through use of  the ExpressionFactory and
> manipulation of the ObjectRegistry used. Maybe by providing a means of
> switching form the JellyContextRegistry to a ObjectRegistry native to
> BSF. The BSF taglibrary code could be reused in the <body> tag to attain
> use of BSF scripting in the generated class that is "context
> independent" of Jelly while reusing the Expression/ExpressionFactory
> code already implemented to easily provide the scripting support. It
> might be even possible to provide the ability to reuse BeanShell as
> scripting environment via this methodology as well.

Agreed. The Expression interface used inside Jelly is normally reserved for
simple expressions which return values. So a subset of scripting languages.
It'd be cool to add this kind of feature (compiling expressions) into BSF -
right now BSF just has an eval method where you pass in the expression text.

For now what you could do is just get the textual content of a <script> tag
then use the BSF to turn it into Java code.


Do You Yahoo!?
Everything you'll ever need on one web page
from News and Sport to Email and Music Charts

To unsubscribe, e-mail:   <>
For additional commands, e-mail: <>

View raw message