I've been trying to catalog all of the cases where OGNL exists and where
it can be replaced. I'll sometime in the next few weeks to really work
on this and I'm hoping that we can replace OGNL from all developer
facing locations and completely standardize on EL. I think most folks
would be in favor of making things simpler and more standard across all
layers of Struts, including JSPs.
From what I've found thus far, I think the main point where OGNL is
extremely useful and something similar to OGNL is required is the
parameter handling. Other than that, it is just a matter of changing
code and possibly losing some features such as inline list and map
creation (not sure if UEL has this or not).
-bp
Jeromy Evans wrote:
Wendy Smoak wrote:
Did anything ever happen with this? Can you switch to a different EL
in Struts 2.1?
Hi Wendy,
Not at this point. A plugin has been started in the sandbox
(struts2-uel-plugin). However, my impression in that OGNL is deeply
entrenched and making the EL switchable is a major undertaking. For a
start, the Component, which every tag extends, has numerous methods
that have been assumed to evaluate OGNL to access the valuestack (eg.
findString) and the default converters all seem to fall-back to OGNL
to determine object types. These can be made EL-independent, or OGNL
wrapped so UEL can be used in the tags, but it's not going to be easy!
See the thread(s) from November 07 containing "JUEL plugin" in the
subject
reagrds,
Jeromy Evans
---------------------------------------------------------------------
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]