You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by st...@gmail.com on 2008/02/10 19:06:41 UTC
OGNL kicks major butt!
This might be old hat for some of you, but I recently had a scenario where
OGNL made the solution sweet!
Check it out! <http://strutsschool.com//util/blog.action>
--
Scott
stanlick@gmail.com
Re: OGNL kicks major butt!
Posted by st...@gmail.com.
I was pretty sure this mapping was beyond the basic ParametersInterceptor so
I crawled the call stack to find the magic code in the ognl.ASTChain class.
children[children.length - 1].setValue( context, target, value );
What a beauty!
Scott
On Feb 10, 2008 3:49 PM, <st...@gmail.com> wrote:
> Dude... OGNL is always involved :)
>
>
> On Feb 10, 2008 12:25 PM, Dave Newton <ne...@yahoo.com> wrote:
>
> > --- stanlick@gmail.com wrote:
> > > This might be old hat for some of you, but I recently had a scenario
> > where
> > > OGNL made the solution sweet!
> > >
> > > Check it out! <http://strutsschool.com//util/blog.action>
> >
> > I might classify that as type conversion rather than OGNL, since there
> > isn't
> > any OGNL involved.
> >
> > Dave
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> > For additional commands, e-mail: user-help@struts.apache.org
> >
> >
>
>
> --
> Scott
> stanlick@gmail.com
--
Scott
stanlick@gmail.com
Re: [struts] OGNL kicks major butt!
Posted by Dale Newfield <Da...@Newfield.org>.
Dale Newfield wrote:
> tags [...] have to capture the attribute string arg, and at evaluation time
> evaluate them all (when failing, populating with either the arg string
> itself or sane defaults).
Just to clarify: This process is straight forward (and I think all
those steps have to happen somehow), but the way I'm doing it now makes
for lots of ugly cut and paste coding that seems error-prone.
-Dale
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org
Re: [struts] OGNL kicks major butt!
Posted by Dale Newfield <Da...@Newfield.org>.
Dave Newton wrote:
> --- stanlick@gmail.com wrote:
> the EL is pluggable in S2.1 and AFAICT has been abstracted out of XW2.
Is this layer something clean? I have a handful of tags that I've built
that have to capture the attribute string arg, and at evaluation time
evaluate them all (when failing, populating with either the arg string
itself or sane defaults). It seems there must be a cleaner design. If
this abstraction is clean, maybe it's the model I'm looking for...
Where would I look to learn about it?
> The OGNL here is buried in the S2.0/XW1 parameters interceptor and the
> corresponding S2 documentation for handling lists is in type conversion.
I'll guess that this is where I should start looking :-)
-Dale
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org
Re: OGNL kicks major butt!
Posted by Dave Newton <ne...@yahoo.com>.
--- stanlick@gmail.com wrote:
> OGNL is always involved
Except when it isn't, I suppose. Don't forget that the EL is pluggable in
S2.1 and AFAICT has been abstracted out of XW2.
The OGNL here is buried in the S2.0/XW1 parameters interceptor and the
corresponding S2 documentation for handling lists is in type conversion.
> On Feb 10, 2008 12:25 PM, Dave Newton <ne...@yahoo.com> wrote:
> > --- stanlick@gmail.com wrote:
> > > This might be old hat for some of you, but I recently had a scenario
> > where
> > > OGNL made the solution sweet!
> > >
> > > Check it out! <http://strutsschool.com//util/blog.action>
> >
> > I might classify that as type conversion rather than OGNL, since there
> > isn't
> > any OGNL involved.
> >
> > Dave
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> > For additional commands, e-mail: user-help@struts.apache.org
> >
> >
>
>
> --
> Scott
> stanlick@gmail.com
>
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org
Re: OGNL kicks major butt!
Posted by st...@gmail.com.
Dude... OGNL is always involved :)
On Feb 10, 2008 12:25 PM, Dave Newton <ne...@yahoo.com> wrote:
> --- stanlick@gmail.com wrote:
> > This might be old hat for some of you, but I recently had a scenario
> where
> > OGNL made the solution sweet!
> >
> > Check it out! <http://strutsschool.com//util/blog.action>
>
> I might classify that as type conversion rather than OGNL, since there
> isn't
> any OGNL involved.
>
> Dave
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
>
>
--
Scott
stanlick@gmail.com
Re: OGNL kicks major butt!
Posted by Dave Newton <ne...@yahoo.com>.
--- stanlick@gmail.com wrote:
> This might be old hat for some of you, but I recently had a scenario where
> OGNL made the solution sweet!
>
> Check it out! <http://strutsschool.com//util/blog.action>
I might classify that as type conversion rather than OGNL, since there isn't
any OGNL involved.
Dave
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org