I'm not 100% on the specification, but isn't this case what the delayed
evaluation is for?
-bp
Adam Hardy wrote:
Oh I see. The JSP standard specifies real-time expression evaluation
with EL when declared in the TLD for evaluation by the servlet
container, and OGNL is only evaluated by tag code and for security's
sake, the TLD declares 'no real-time expression' so that the container
does nothing to it.
So separate TLDs, jarred with the appropriate code? One jar for the
MVEL S2 stack, and one jar for the traditional OGNL-based S2/webwork
stack? Presumably there must be something more that stops you doing
that which I don't know about.
Tom Schneider on 02/12/07 21:57, wrote:
It wouldn't even be a configuration change. Just drop the plugin jar
in your s2 project and you're using my value stack. (Most likely
breaking a lot of your OGNL) At this point, we execute the unified
EL outside of the JSP engine, within the tags/value stack. So at a
minimum, if we wanted to support EL at a JSP level, we'd have to
create a new tld file. I'm not sure how that would work with the
existing tags, it's been a while since I've written a taglib outside
of s2/webwork. It all depends on how seamlessly you would want it to
work with existing JSP taglibs, like JSTL. The work I've done would
certainly be a darn good start. If we needed a whole new taglib, I
think that would be a good amount of work.
Tom
Adam Hardy wrote:
Very interesting.
The situation at the moment is that EL and OGNL should not be used
together, for security reasons as I understand it, and therefore S2
doesn't allow EL. It seems the ideal solution is to offer the option
of either EL or OGNL, with only a change in one configuration option
needed to specify which.
Tom Schneider on 02/12/07 19:34, wrote:
I was working on a proof of concept for Unified EL:
http://cwiki.apache.org/S2PLUGINS/unified-el-plugin.html
I had a basic value stack up and running, however, I never took it
any farther than that. Richard Burton is planning on implemented
an MVEL stack in the near future, but he's waiting on some changes
from Chris Brock in MVEL itself.
I think in the long run, we really need a new tag library to fully
take advantage of the unfied EL. Even if we do that though,
standard unified EL is not as powerful as OGNL. We would need to
extend the language or be limited when compared to what is possible
with OGNL today. Maybe for some people that's not an issue, but I
fear that would keep some people from switching.
Tom
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]