You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@struts.apache.org by Paul Benedict <pb...@apache.org> on 2014/06/16 17:26:12 UTC
does not accept expressions?
Is this a bug? I cannot use an EL expression to set the "value" attribute.
I don't understand why such a restriction exists. Thoughts?
Cheers,
Paul
Re: does not accept expressions?
Posted by Lukasz Lenart <lu...@apache.org>.
2014-06-18 15:58 GMT+02:00 Paul Benedict <pb...@apache.org>:
> Given this:
> <s:textfield name="myActionMember" />
>
> The name attribute is a literal, no? So the attribute is simply the value
> you provided.
it's a name of the field in action (with getter), but you can do
something like this
<s:textfield name="%{calculateMyActionMember}" />
and then the name first will be calculated based on ValueStack
Regards
--
Ćukasz
+ 48 606 323 122 http://www.lenart.org.pl/
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@struts.apache.org
For additional commands, e-mail: dev-help@struts.apache.org
Re: does not accept expressions?
Posted by Paul Benedict <pb...@apache.org>.
Given this:
<s:textfield name="myActionMember" />
The name attribute is a literal, no? So the attribute is simply the value
you provided.
Cheers,
Paul
On Wed, Jun 18, 2014 at 8:55 AM, Christoph Nenning <
Christoph.Nenning@lex-com.net> wrote:
> >
> > Christoph, nothing changes in your example; there is no expression to
> > evaluate.
> >
> >
>
> Really?
>
> I thought the string "myActionMember" is an expression which is evaluated
> against ValueStack.
>
>
> Regards,
> Christoph
>
>
>
>
> (on a side note: I will be offline for next 2.5 weeks, otherwise it would
> not be holyday ;)
>
>
>
>
> >
> > On Wed, Jun 18, 2014 at 3:38 AM, Christoph Nenning <
> > Christoph.Nenning@lex-com.net> wrote:
> >
> > > This could make very simple usecases overly complicated.
> > >
> > > E.g. using just a textfield:
> > >
> > > <s:textfield name="myActionMember" />
> > >
> > >
> > > This is already OGNL. And OGNL is used for reading and writing.
> > >
> > > How would you do this with EL (especially the writing part) ?
> > >
> > >
> > >
> > > Regards,
> > > Christoph
> > >
> > >
> > >
> > >
> > > > That's the pattern I expect. One tag should expose what you need
> from
> > > > Struts to EL -- the rest of the Struts tags should just be pure EL
> > > enabled.
> > > >
> > > >
> > > > Cheers,
> > > > Paul
> > > >
> > > >
> > > > On Tue, Jun 17, 2014 at 10:06 AM, Christoph Nenning <
> > > > Christoph.Nenning@lex-com.net> wrote:
> > > >
> > > > > In my JSPs I have interactions with struts all the time so OGNL is
> > > > > important for me.
> > > > >
> > > > > A pattern I use quite often is to get objects via <s:set> (OGNL)
> and
> > > > > afterwards use them with EL/JSTL.
> > > > >
> > > > >
> > > > >
> > > > > Regards,
> > > > > Christoph
> > > > >
> > > > >
> > > > >
> > > > >
> > > > > > I believe my thoughts are similar. When I code, I explicitly try
> to
> > > be
> > > > > > "OGNL free" in my JSP. There's no reason for me to use OGNL
> unless I
> > > am
> > > > > > forced to via interaction with Struts. I do what I can do make
> sure
> > > my
> > > > > JSP
> > > > > > usage sticks with the EE standard.
> > > > > >
> > > > > >
> > > > > >
> > > > > >
> > > > > > Cheers,
> > > > > > Paul
> > > > > >
> > > > > >
> > > > > > On Tue, Jun 17, 2014 at 9:55 AM, Aaron Johnson
> > > > > <jo...@gmail.com>
> > > > > > wrote:
> > > > > >
> > > > > > > EL now supports many functions of OGNL. Would it make sense
> just
> > > to
> > > > > replace
> > > > > > > OGNL with EL? There doesn't seem to be much of a community
> around
> > > > > updating
> > > > > > > OGNL. The newer versions of EL have improved support for usage
> > > outside
> > > > > of
> > > > > > > the JSP environment. Is it possible to use EL in the other
> > > templates
> > > > > > > (Velocity, Freemarker, etc)? It is very confusing to have to
> work
> > > with
> > > > > > > multiple expression contexts (ValueStack lookups and JSTL)
> when
> > > > > authoring
> > > > > > > JSPs.
> > > > > > >
> > > > > > >
> > > > > > > On Mon, Jun 16, 2014 at 11:12 AM, Paul Benedict
> > > <pb...@apache.org>
> > > > > > > wrote:
> > > > > > >
> > > > > > > > Maybe we should have two versions of the tags? One that
> accepts
> > > EL
> > > > > (and
> > > > > > > > never executes OGNL) and another one that does. Quite
> honestly,
> > > I
> > > > > have no
> > > > > > > > use for OGNL inside of JSP.
> > > > > > > >
> > > > > > > >
> > > > > > > > Cheers,
> > > > > > > > Paul
> > > > > > > >
> > > > > > > >
> > > > > > > > On Mon, Jun 16, 2014 at 11:05 AM, Paul Benedict
> > > > > <pb...@apache.org>
> > > > > > > > wrote:
> > > > > > > >
> > > > > > > > > That's disappointing that we're crippling the use of these
> > > tags. I
> > > > > just
> > > > > > > > > want to use EL for single evaluation. I don't need both
> OGNL
> > > and
> > > > > EL in
> > > > > > > my
> > > > > > > > > tags -- just EL.
> > > > > > > > >
> > > > > > > > >
> > > > > > > > > Cheers,
> > > > > > > > > Paul
> > > > > > > > >
> > > > > > > > >
> > > > > > > > > On Mon, Jun 16, 2014 at 10:44 AM, Dave Newton
> > > > > <da...@gmail.com>
> > > > > > > > > wrote:
> > > > > > > > >
> > > > > > > > >>
> > > > > > > > >>
> > > > > > > >
> > > > > > >
> http://struts.apache.org/release/2.2.x/docs/why-cant-i-use-jstl-
> > > > > > style-el-expressions-in-struts-tags.html
> > > > > > > > >>
> > > > > > > > >>
> > > > > > > > >> On Mon, Jun 16, 2014 at 11:26 AM, Paul Benedict
> > > > > <pbenedict@apache.org
> > > > > > > >
> > > > > > > > >> wrote:
> > > > > > > > >>
> > > > > > > > >> > Is this a bug? I cannot use an EL expression to set the
> > > "value"
> > > > > > > > >> attribute.
> > > > > > > > >> > I don't understand why such a restriction exists.
> Thoughts?
> > > > > > > > >> >
> > > > > > > > >> > Cheers,
> > > > > > > > >> > Paul
> > > > > > > > >> >
> > > > > > > > >>
> > > > > > > > >>
> > > > > > > > >>
> > > > > > > > >> --
> > > > > > > > >> e: davelnewton@gmail.com
> > > > > > > > >> m: 908-380-8699
> > > > > > > > >> s: davelnewton_skype
> > > > > > > > >> t: @dave_newton <https://twitter.com/dave_newton>
> > > > > > > > >> b: Bucky Bits <http://buckybits.blogspot.com/>
> > > > > > > > >> g: davelnewton <https://github.com/davelnewton>
> > > > > > > > >> so: Dave Newton <
> > > > > http://stackoverflow.com/users/438992/dave-newton>
> > > > > > > > >>
> > > > > > > > >
> > > > > > > > >
> > > > > > > >
> > > > > > >
> > > > >
> > > > > This Email was scanned by Sophos Anti Virus
> > > > >
> > >
> > > This Email was scanned by Sophos Anti Virus
> > >
>
> This Email was scanned by Sophos Anti Virus
>
Re: does not accept expressions?
Posted by Christoph Nenning <Ch...@lex-com.net>.
>
> Christoph, nothing changes in your example; there is no expression to
> evaluate.
>
>
Really?
I thought the string "myActionMember" is an expression which is evaluated
against ValueStack.
Regards,
Christoph
(on a side note: I will be offline for next 2.5 weeks, otherwise it would
not be holyday ;)
>
> On Wed, Jun 18, 2014 at 3:38 AM, Christoph Nenning <
> Christoph.Nenning@lex-com.net> wrote:
>
> > This could make very simple usecases overly complicated.
> >
> > E.g. using just a textfield:
> >
> > <s:textfield name="myActionMember" />
> >
> >
> > This is already OGNL. And OGNL is used for reading and writing.
> >
> > How would you do this with EL (especially the writing part) ?
> >
> >
> >
> > Regards,
> > Christoph
> >
> >
> >
> >
> > > That's the pattern I expect. One tag should expose what you need
from
> > > Struts to EL -- the rest of the Struts tags should just be pure EL
> > enabled.
> > >
> > >
> > > Cheers,
> > > Paul
> > >
> > >
> > > On Tue, Jun 17, 2014 at 10:06 AM, Christoph Nenning <
> > > Christoph.Nenning@lex-com.net> wrote:
> > >
> > > > In my JSPs I have interactions with struts all the time so OGNL is
> > > > important for me.
> > > >
> > > > A pattern I use quite often is to get objects via <s:set> (OGNL)
and
> > > > afterwards use them with EL/JSTL.
> > > >
> > > >
> > > >
> > > > Regards,
> > > > Christoph
> > > >
> > > >
> > > >
> > > >
> > > > > I believe my thoughts are similar. When I code, I explicitly try
to
> > be
> > > > > "OGNL free" in my JSP. There's no reason for me to use OGNL
unless I
> > am
> > > > > forced to via interaction with Struts. I do what I can do make
sure
> > my
> > > > JSP
> > > > > usage sticks with the EE standard.
> > > > >
> > > > >
> > > > >
> > > > >
> > > > > Cheers,
> > > > > Paul
> > > > >
> > > > >
> > > > > On Tue, Jun 17, 2014 at 9:55 AM, Aaron Johnson
> > > > <jo...@gmail.com>
> > > > > wrote:
> > > > >
> > > > > > EL now supports many functions of OGNL. Would it make sense
just
> > to
> > > > replace
> > > > > > OGNL with EL? There doesn't seem to be much of a community
around
> > > > updating
> > > > > > OGNL. The newer versions of EL have improved support for usage
> > outside
> > > > of
> > > > > > the JSP environment. Is it possible to use EL in the other
> > templates
> > > > > > (Velocity, Freemarker, etc)? It is very confusing to have to
work
> > with
> > > > > > multiple expression contexts (ValueStack lookups and JSTL)
when
> > > > authoring
> > > > > > JSPs.
> > > > > >
> > > > > >
> > > > > > On Mon, Jun 16, 2014 at 11:12 AM, Paul Benedict
> > <pb...@apache.org>
> > > > > > wrote:
> > > > > >
> > > > > > > Maybe we should have two versions of the tags? One that
accepts
> > EL
> > > > (and
> > > > > > > never executes OGNL) and another one that does. Quite
honestly,
> > I
> > > > have no
> > > > > > > use for OGNL inside of JSP.
> > > > > > >
> > > > > > >
> > > > > > > Cheers,
> > > > > > > Paul
> > > > > > >
> > > > > > >
> > > > > > > On Mon, Jun 16, 2014 at 11:05 AM, Paul Benedict
> > > > <pb...@apache.org>
> > > > > > > wrote:
> > > > > > >
> > > > > > > > That's disappointing that we're crippling the use of these
> > tags. I
> > > > just
> > > > > > > > want to use EL for single evaluation. I don't need both
OGNL
> > and
> > > > EL in
> > > > > > my
> > > > > > > > tags -- just EL.
> > > > > > > >
> > > > > > > >
> > > > > > > > Cheers,
> > > > > > > > Paul
> > > > > > > >
> > > > > > > >
> > > > > > > > On Mon, Jun 16, 2014 at 10:44 AM, Dave Newton
> > > > <da...@gmail.com>
> > > > > > > > wrote:
> > > > > > > >
> > > > > > > >>
> > > > > > > >>
> > > > > > >
> > > > > >
http://struts.apache.org/release/2.2.x/docs/why-cant-i-use-jstl-
> > > > > style-el-expressions-in-struts-tags.html
> > > > > > > >>
> > > > > > > >>
> > > > > > > >> On Mon, Jun 16, 2014 at 11:26 AM, Paul Benedict
> > > > <pbenedict@apache.org
> > > > > > >
> > > > > > > >> wrote:
> > > > > > > >>
> > > > > > > >> > Is this a bug? I cannot use an EL expression to set the
> > "value"
> > > > > > > >> attribute.
> > > > > > > >> > I don't understand why such a restriction exists.
Thoughts?
> > > > > > > >> >
> > > > > > > >> > Cheers,
> > > > > > > >> > Paul
> > > > > > > >> >
> > > > > > > >>
> > > > > > > >>
> > > > > > > >>
> > > > > > > >> --
> > > > > > > >> e: davelnewton@gmail.com
> > > > > > > >> m: 908-380-8699
> > > > > > > >> s: davelnewton_skype
> > > > > > > >> t: @dave_newton <https://twitter.com/dave_newton>
> > > > > > > >> b: Bucky Bits <http://buckybits.blogspot.com/>
> > > > > > > >> g: davelnewton <https://github.com/davelnewton>
> > > > > > > >> so: Dave Newton <
> > > > http://stackoverflow.com/users/438992/dave-newton>
> > > > > > > >>
> > > > > > > >
> > > > > > > >
> > > > > > >
> > > > > >
> > > >
> > > > This Email was scanned by Sophos Anti Virus
> > > >
> >
> > This Email was scanned by Sophos Anti Virus
> >
This Email was scanned by Sophos Anti Virus
Re: does not accept expressions?
Posted by Paul Benedict <pb...@apache.org>.
Christoph, nothing changes in your example; there is no expression to
evaluate.
Cheers,
Paul
On Wed, Jun 18, 2014 at 3:38 AM, Christoph Nenning <
Christoph.Nenning@lex-com.net> wrote:
> This could make very simple usecases overly complicated.
>
> E.g. using just a textfield:
>
> <s:textfield name="myActionMember" />
>
>
> This is already OGNL. And OGNL is used for reading and writing.
>
> How would you do this with EL (especially the writing part) ?
>
>
>
> Regards,
> Christoph
>
>
>
>
> > That's the pattern I expect. One tag should expose what you need from
> > Struts to EL -- the rest of the Struts tags should just be pure EL
> enabled.
> >
> >
> > Cheers,
> > Paul
> >
> >
> > On Tue, Jun 17, 2014 at 10:06 AM, Christoph Nenning <
> > Christoph.Nenning@lex-com.net> wrote:
> >
> > > In my JSPs I have interactions with struts all the time so OGNL is
> > > important for me.
> > >
> > > A pattern I use quite often is to get objects via <s:set> (OGNL) and
> > > afterwards use them with EL/JSTL.
> > >
> > >
> > >
> > > Regards,
> > > Christoph
> > >
> > >
> > >
> > >
> > > > I believe my thoughts are similar. When I code, I explicitly try to
> be
> > > > "OGNL free" in my JSP. There's no reason for me to use OGNL unless I
> am
> > > > forced to via interaction with Struts. I do what I can do make sure
> my
> > > JSP
> > > > usage sticks with the EE standard.
> > > >
> > > >
> > > >
> > > >
> > > > Cheers,
> > > > Paul
> > > >
> > > >
> > > > On Tue, Jun 17, 2014 at 9:55 AM, Aaron Johnson
> > > <jo...@gmail.com>
> > > > wrote:
> > > >
> > > > > EL now supports many functions of OGNL. Would it make sense just
> to
> > > replace
> > > > > OGNL with EL? There doesn't seem to be much of a community around
> > > updating
> > > > > OGNL. The newer versions of EL have improved support for usage
> outside
> > > of
> > > > > the JSP environment. Is it possible to use EL in the other
> templates
> > > > > (Velocity, Freemarker, etc)? It is very confusing to have to work
> with
> > > > > multiple expression contexts (ValueStack lookups and JSTL) when
> > > authoring
> > > > > JSPs.
> > > > >
> > > > >
> > > > > On Mon, Jun 16, 2014 at 11:12 AM, Paul Benedict
> <pb...@apache.org>
> > > > > wrote:
> > > > >
> > > > > > Maybe we should have two versions of the tags? One that accepts
> EL
> > > (and
> > > > > > never executes OGNL) and another one that does. Quite honestly,
> I
> > > have no
> > > > > > use for OGNL inside of JSP.
> > > > > >
> > > > > >
> > > > > > Cheers,
> > > > > > Paul
> > > > > >
> > > > > >
> > > > > > On Mon, Jun 16, 2014 at 11:05 AM, Paul Benedict
> > > <pb...@apache.org>
> > > > > > wrote:
> > > > > >
> > > > > > > That's disappointing that we're crippling the use of these
> tags. I
> > > just
> > > > > > > want to use EL for single evaluation. I don't need both OGNL
> and
> > > EL in
> > > > > my
> > > > > > > tags -- just EL.
> > > > > > >
> > > > > > >
> > > > > > > Cheers,
> > > > > > > Paul
> > > > > > >
> > > > > > >
> > > > > > > On Mon, Jun 16, 2014 at 10:44 AM, Dave Newton
> > > <da...@gmail.com>
> > > > > > > wrote:
> > > > > > >
> > > > > > >>
> > > > > > >>
> > > > > >
> > > > > http://struts.apache.org/release/2.2.x/docs/why-cant-i-use-jstl-
> > > > style-el-expressions-in-struts-tags.html
> > > > > > >>
> > > > > > >>
> > > > > > >> On Mon, Jun 16, 2014 at 11:26 AM, Paul Benedict
> > > <pbenedict@apache.org
> > > > > >
> > > > > > >> wrote:
> > > > > > >>
> > > > > > >> > Is this a bug? I cannot use an EL expression to set the
> "value"
> > > > > > >> attribute.
> > > > > > >> > I don't understand why such a restriction exists. Thoughts?
> > > > > > >> >
> > > > > > >> > Cheers,
> > > > > > >> > Paul
> > > > > > >> >
> > > > > > >>
> > > > > > >>
> > > > > > >>
> > > > > > >> --
> > > > > > >> e: davelnewton@gmail.com
> > > > > > >> m: 908-380-8699
> > > > > > >> s: davelnewton_skype
> > > > > > >> t: @dave_newton <https://twitter.com/dave_newton>
> > > > > > >> b: Bucky Bits <http://buckybits.blogspot.com/>
> > > > > > >> g: davelnewton <https://github.com/davelnewton>
> > > > > > >> so: Dave Newton <
> > > http://stackoverflow.com/users/438992/dave-newton>
> > > > > > >>
> > > > > > >
> > > > > > >
> > > > > >
> > > > >
> > >
> > > This Email was scanned by Sophos Anti Virus
> > >
>
> This Email was scanned by Sophos Anti Virus
>
Re: does not accept expressions?
Posted by Aaron Johnson <jo...@gmail.com>.
http://docs.oracle.com/javaee/7/api/javax/el/ExpressionFactory.html
http://docs.oracle.com/javaee/7/api/javax/el/ValueExpression.html
The framework would also need to provide an ELResolver that knows where to
find the Struts action.
On Wed, Jun 18, 2014 at 3:38 AM, Christoph Nenning <
Christoph.Nenning@lex-com.net> wrote:
> This could make very simple usecases overly complicated.
>
> E.g. using just a textfield:
>
> <s:textfield name="myActionMember" />
>
>
> This is already OGNL. And OGNL is used for reading and writing.
>
> How would you do this with EL (especially the writing part) ?
>
>
>
> Regards,
> Christoph
>
>
>
>
> > That's the pattern I expect. One tag should expose what you need from
> > Struts to EL -- the rest of the Struts tags should just be pure EL
> enabled.
> >
> >
> > Cheers,
> > Paul
> >
> >
> > On Tue, Jun 17, 2014 at 10:06 AM, Christoph Nenning <
> > Christoph.Nenning@lex-com.net> wrote:
> >
> > > In my JSPs I have interactions with struts all the time so OGNL is
> > > important for me.
> > >
> > > A pattern I use quite often is to get objects via <s:set> (OGNL) and
> > > afterwards use them with EL/JSTL.
> > >
> > >
> > >
> > > Regards,
> > > Christoph
> > >
> > >
> > >
> > >
> > > > I believe my thoughts are similar. When I code, I explicitly try to
> be
> > > > "OGNL free" in my JSP. There's no reason for me to use OGNL unless I
> am
> > > > forced to via interaction with Struts. I do what I can do make sure
> my
> > > JSP
> > > > usage sticks with the EE standard.
> > > >
> > > >
> > > >
> > > >
> > > > Cheers,
> > > > Paul
> > > >
> > > >
> > > > On Tue, Jun 17, 2014 at 9:55 AM, Aaron Johnson
> > > <jo...@gmail.com>
> > > > wrote:
> > > >
> > > > > EL now supports many functions of OGNL. Would it make sense just
> to
> > > replace
> > > > > OGNL with EL? There doesn't seem to be much of a community around
> > > updating
> > > > > OGNL. The newer versions of EL have improved support for usage
> outside
> > > of
> > > > > the JSP environment. Is it possible to use EL in the other
> templates
> > > > > (Velocity, Freemarker, etc)? It is very confusing to have to work
> with
> > > > > multiple expression contexts (ValueStack lookups and JSTL) when
> > > authoring
> > > > > JSPs.
> > > > >
> > > > >
> > > > > On Mon, Jun 16, 2014 at 11:12 AM, Paul Benedict
> <pb...@apache.org>
> > > > > wrote:
> > > > >
> > > > > > Maybe we should have two versions of the tags? One that accepts
> EL
> > > (and
> > > > > > never executes OGNL) and another one that does. Quite honestly,
> I
> > > have no
> > > > > > use for OGNL inside of JSP.
> > > > > >
> > > > > >
> > > > > > Cheers,
> > > > > > Paul
> > > > > >
> > > > > >
> > > > > > On Mon, Jun 16, 2014 at 11:05 AM, Paul Benedict
> > > <pb...@apache.org>
> > > > > > wrote:
> > > > > >
> > > > > > > That's disappointing that we're crippling the use of these
> tags. I
> > > just
> > > > > > > want to use EL for single evaluation. I don't need both OGNL
> and
> > > EL in
> > > > > my
> > > > > > > tags -- just EL.
> > > > > > >
> > > > > > >
> > > > > > > Cheers,
> > > > > > > Paul
> > > > > > >
> > > > > > >
> > > > > > > On Mon, Jun 16, 2014 at 10:44 AM, Dave Newton
> > > <da...@gmail.com>
> > > > > > > wrote:
> > > > > > >
> > > > > > >>
> > > > > > >>
> > > > > >
> > > > > http://struts.apache.org/release/2.2.x/docs/why-cant-i-use-jstl-
> > > > style-el-expressions-in-struts-tags.html
> > > > > > >>
> > > > > > >>
> > > > > > >> On Mon, Jun 16, 2014 at 11:26 AM, Paul Benedict
> > > <pbenedict@apache.org
> > > > > >
> > > > > > >> wrote:
> > > > > > >>
> > > > > > >> > Is this a bug? I cannot use an EL expression to set the
> "value"
> > > > > > >> attribute.
> > > > > > >> > I don't understand why such a restriction exists. Thoughts?
> > > > > > >> >
> > > > > > >> > Cheers,
> > > > > > >> > Paul
> > > > > > >> >
> > > > > > >>
> > > > > > >>
> > > > > > >>
> > > > > > >> --
> > > > > > >> e: davelnewton@gmail.com
> > > > > > >> m: 908-380-8699
> > > > > > >> s: davelnewton_skype
> > > > > > >> t: @dave_newton <https://twitter.com/dave_newton>
> > > > > > >> b: Bucky Bits <http://buckybits.blogspot.com/>
> > > > > > >> g: davelnewton <https://github.com/davelnewton>
> > > > > > >> so: Dave Newton <
> > > http://stackoverflow.com/users/438992/dave-newton>
> > > > > > >>
> > > > > > >
> > > > > > >
> > > > > >
> > > > >
> > >
> > > This Email was scanned by Sophos Anti Virus
> > >
>
> This Email was scanned by Sophos Anti Virus
>
Re: does not accept expressions?
Posted by Christoph Nenning <Ch...@lex-com.net>.
This could make very simple usecases overly complicated.
E.g. using just a textfield:
<s:textfield name="myActionMember" />
This is already OGNL. And OGNL is used for reading and writing.
How would you do this with EL (especially the writing part) ?
Regards,
Christoph
> That's the pattern I expect. One tag should expose what you need from
> Struts to EL -- the rest of the Struts tags should just be pure EL
enabled.
>
>
> Cheers,
> Paul
>
>
> On Tue, Jun 17, 2014 at 10:06 AM, Christoph Nenning <
> Christoph.Nenning@lex-com.net> wrote:
>
> > In my JSPs I have interactions with struts all the time so OGNL is
> > important for me.
> >
> > A pattern I use quite often is to get objects via <s:set> (OGNL) and
> > afterwards use them with EL/JSTL.
> >
> >
> >
> > Regards,
> > Christoph
> >
> >
> >
> >
> > > I believe my thoughts are similar. When I code, I explicitly try to
be
> > > "OGNL free" in my JSP. There's no reason for me to use OGNL unless I
am
> > > forced to via interaction with Struts. I do what I can do make sure
my
> > JSP
> > > usage sticks with the EE standard.
> > >
> > >
> > >
> > >
> > > Cheers,
> > > Paul
> > >
> > >
> > > On Tue, Jun 17, 2014 at 9:55 AM, Aaron Johnson
> > <jo...@gmail.com>
> > > wrote:
> > >
> > > > EL now supports many functions of OGNL. Would it make sense just
to
> > replace
> > > > OGNL with EL? There doesn't seem to be much of a community around
> > updating
> > > > OGNL. The newer versions of EL have improved support for usage
outside
> > of
> > > > the JSP environment. Is it possible to use EL in the other
templates
> > > > (Velocity, Freemarker, etc)? It is very confusing to have to work
with
> > > > multiple expression contexts (ValueStack lookups and JSTL) when
> > authoring
> > > > JSPs.
> > > >
> > > >
> > > > On Mon, Jun 16, 2014 at 11:12 AM, Paul Benedict
<pb...@apache.org>
> > > > wrote:
> > > >
> > > > > Maybe we should have two versions of the tags? One that accepts
EL
> > (and
> > > > > never executes OGNL) and another one that does. Quite honestly,
I
> > have no
> > > > > use for OGNL inside of JSP.
> > > > >
> > > > >
> > > > > Cheers,
> > > > > Paul
> > > > >
> > > > >
> > > > > On Mon, Jun 16, 2014 at 11:05 AM, Paul Benedict
> > <pb...@apache.org>
> > > > > wrote:
> > > > >
> > > > > > That's disappointing that we're crippling the use of these
tags. I
> > just
> > > > > > want to use EL for single evaluation. I don't need both OGNL
and
> > EL in
> > > > my
> > > > > > tags -- just EL.
> > > > > >
> > > > > >
> > > > > > Cheers,
> > > > > > Paul
> > > > > >
> > > > > >
> > > > > > On Mon, Jun 16, 2014 at 10:44 AM, Dave Newton
> > <da...@gmail.com>
> > > > > > wrote:
> > > > > >
> > > > > >>
> > > > > >>
> > > > >
> > > > http://struts.apache.org/release/2.2.x/docs/why-cant-i-use-jstl-
> > > style-el-expressions-in-struts-tags.html
> > > > > >>
> > > > > >>
> > > > > >> On Mon, Jun 16, 2014 at 11:26 AM, Paul Benedict
> > <pbenedict@apache.org
> > > > >
> > > > > >> wrote:
> > > > > >>
> > > > > >> > Is this a bug? I cannot use an EL expression to set the
"value"
> > > > > >> attribute.
> > > > > >> > I don't understand why such a restriction exists. Thoughts?
> > > > > >> >
> > > > > >> > Cheers,
> > > > > >> > Paul
> > > > > >> >
> > > > > >>
> > > > > >>
> > > > > >>
> > > > > >> --
> > > > > >> e: davelnewton@gmail.com
> > > > > >> m: 908-380-8699
> > > > > >> s: davelnewton_skype
> > > > > >> t: @dave_newton <https://twitter.com/dave_newton>
> > > > > >> b: Bucky Bits <http://buckybits.blogspot.com/>
> > > > > >> g: davelnewton <https://github.com/davelnewton>
> > > > > >> so: Dave Newton <
> > http://stackoverflow.com/users/438992/dave-newton>
> > > > > >>
> > > > > >
> > > > > >
> > > > >
> > > >
> >
> > This Email was scanned by Sophos Anti Virus
> >
This Email was scanned by Sophos Anti Virus
Re: does not accept expressions?
Posted by Paul Benedict <pb...@apache.org>.
That's the pattern I expect. One tag should expose what you need from
Struts to EL -- the rest of the Struts tags should just be pure EL enabled.
Cheers,
Paul
On Tue, Jun 17, 2014 at 10:06 AM, Christoph Nenning <
Christoph.Nenning@lex-com.net> wrote:
> In my JSPs I have interactions with struts all the time so OGNL is
> important for me.
>
> A pattern I use quite often is to get objects via <s:set> (OGNL) and
> afterwards use them with EL/JSTL.
>
>
>
> Regards,
> Christoph
>
>
>
>
> > I believe my thoughts are similar. When I code, I explicitly try to be
> > "OGNL free" in my JSP. There's no reason for me to use OGNL unless I am
> > forced to via interaction with Struts. I do what I can do make sure my
> JSP
> > usage sticks with the EE standard.
> >
> >
> >
> >
> > Cheers,
> > Paul
> >
> >
> > On Tue, Jun 17, 2014 at 9:55 AM, Aaron Johnson
> <jo...@gmail.com>
> > wrote:
> >
> > > EL now supports many functions of OGNL. Would it make sense just to
> replace
> > > OGNL with EL? There doesn't seem to be much of a community around
> updating
> > > OGNL. The newer versions of EL have improved support for usage outside
> of
> > > the JSP environment. Is it possible to use EL in the other templates
> > > (Velocity, Freemarker, etc)? It is very confusing to have to work with
> > > multiple expression contexts (ValueStack lookups and JSTL) when
> authoring
> > > JSPs.
> > >
> > >
> > > On Mon, Jun 16, 2014 at 11:12 AM, Paul Benedict <pb...@apache.org>
> > > wrote:
> > >
> > > > Maybe we should have two versions of the tags? One that accepts EL
> (and
> > > > never executes OGNL) and another one that does. Quite honestly, I
> have no
> > > > use for OGNL inside of JSP.
> > > >
> > > >
> > > > Cheers,
> > > > Paul
> > > >
> > > >
> > > > On Mon, Jun 16, 2014 at 11:05 AM, Paul Benedict
> <pb...@apache.org>
> > > > wrote:
> > > >
> > > > > That's disappointing that we're crippling the use of these tags. I
> just
> > > > > want to use EL for single evaluation. I don't need both OGNL and
> EL in
> > > my
> > > > > tags -- just EL.
> > > > >
> > > > >
> > > > > Cheers,
> > > > > Paul
> > > > >
> > > > >
> > > > > On Mon, Jun 16, 2014 at 10:44 AM, Dave Newton
> <da...@gmail.com>
> > > > > wrote:
> > > > >
> > > > >>
> > > > >>
> > > >
> > > http://struts.apache.org/release/2.2.x/docs/why-cant-i-use-jstl-
> > style-el-expressions-in-struts-tags.html
> > > > >>
> > > > >>
> > > > >> On Mon, Jun 16, 2014 at 11:26 AM, Paul Benedict
> <pbenedict@apache.org
> > > >
> > > > >> wrote:
> > > > >>
> > > > >> > Is this a bug? I cannot use an EL expression to set the "value"
> > > > >> attribute.
> > > > >> > I don't understand why such a restriction exists. Thoughts?
> > > > >> >
> > > > >> > Cheers,
> > > > >> > Paul
> > > > >> >
> > > > >>
> > > > >>
> > > > >>
> > > > >> --
> > > > >> e: davelnewton@gmail.com
> > > > >> m: 908-380-8699
> > > > >> s: davelnewton_skype
> > > > >> t: @dave_newton <https://twitter.com/dave_newton>
> > > > >> b: Bucky Bits <http://buckybits.blogspot.com/>
> > > > >> g: davelnewton <https://github.com/davelnewton>
> > > > >> so: Dave Newton <
> http://stackoverflow.com/users/438992/dave-newton>
> > > > >>
> > > > >
> > > > >
> > > >
> > >
>
> This Email was scanned by Sophos Anti Virus
>
Re: does not accept expressions?
Posted by Christoph Nenning <Ch...@lex-com.net>.
In my JSPs I have interactions with struts all the time so OGNL is
important for me.
A pattern I use quite often is to get objects via <s:set> (OGNL) and
afterwards use them with EL/JSTL.
Regards,
Christoph
> I believe my thoughts are similar. When I code, I explicitly try to be
> "OGNL free" in my JSP. There's no reason for me to use OGNL unless I am
> forced to via interaction with Struts. I do what I can do make sure my
JSP
> usage sticks with the EE standard.
>
>
>
>
> Cheers,
> Paul
>
>
> On Tue, Jun 17, 2014 at 9:55 AM, Aaron Johnson
<jo...@gmail.com>
> wrote:
>
> > EL now supports many functions of OGNL. Would it make sense just to
replace
> > OGNL with EL? There doesn't seem to be much of a community around
updating
> > OGNL. The newer versions of EL have improved support for usage outside
of
> > the JSP environment. Is it possible to use EL in the other templates
> > (Velocity, Freemarker, etc)? It is very confusing to have to work with
> > multiple expression contexts (ValueStack lookups and JSTL) when
authoring
> > JSPs.
> >
> >
> > On Mon, Jun 16, 2014 at 11:12 AM, Paul Benedict <pb...@apache.org>
> > wrote:
> >
> > > Maybe we should have two versions of the tags? One that accepts EL
(and
> > > never executes OGNL) and another one that does. Quite honestly, I
have no
> > > use for OGNL inside of JSP.
> > >
> > >
> > > Cheers,
> > > Paul
> > >
> > >
> > > On Mon, Jun 16, 2014 at 11:05 AM, Paul Benedict
<pb...@apache.org>
> > > wrote:
> > >
> > > > That's disappointing that we're crippling the use of these tags. I
just
> > > > want to use EL for single evaluation. I don't need both OGNL and
EL in
> > my
> > > > tags -- just EL.
> > > >
> > > >
> > > > Cheers,
> > > > Paul
> > > >
> > > >
> > > > On Mon, Jun 16, 2014 at 10:44 AM, Dave Newton
<da...@gmail.com>
> > > > wrote:
> > > >
> > > >>
> > > >>
> > >
> > http://struts.apache.org/release/2.2.x/docs/why-cant-i-use-jstl-
> style-el-expressions-in-struts-tags.html
> > > >>
> > > >>
> > > >> On Mon, Jun 16, 2014 at 11:26 AM, Paul Benedict
<pbenedict@apache.org
> > >
> > > >> wrote:
> > > >>
> > > >> > Is this a bug? I cannot use an EL expression to set the "value"
> > > >> attribute.
> > > >> > I don't understand why such a restriction exists. Thoughts?
> > > >> >
> > > >> > Cheers,
> > > >> > Paul
> > > >> >
> > > >>
> > > >>
> > > >>
> > > >> --
> > > >> e: davelnewton@gmail.com
> > > >> m: 908-380-8699
> > > >> s: davelnewton_skype
> > > >> t: @dave_newton <https://twitter.com/dave_newton>
> > > >> b: Bucky Bits <http://buckybits.blogspot.com/>
> > > >> g: davelnewton <https://github.com/davelnewton>
> > > >> so: Dave Newton <
http://stackoverflow.com/users/438992/dave-newton>
> > > >>
> > > >
> > > >
> > >
> >
This Email was scanned by Sophos Anti Virus
Re: does not accept expressions?
Posted by Paul Benedict <pb...@apache.org>.
I believe my thoughts are similar. When I code, I explicitly try to be
"OGNL free" in my JSP. There's no reason for me to use OGNL unless I am
forced to via interaction with Struts. I do what I can do make sure my JSP
usage sticks with the EE standard.
Cheers,
Paul
On Tue, Jun 17, 2014 at 9:55 AM, Aaron Johnson <jo...@gmail.com>
wrote:
> EL now supports many functions of OGNL. Would it make sense just to replace
> OGNL with EL? There doesn't seem to be much of a community around updating
> OGNL. The newer versions of EL have improved support for usage outside of
> the JSP environment. Is it possible to use EL in the other templates
> (Velocity, Freemarker, etc)? It is very confusing to have to work with
> multiple expression contexts (ValueStack lookups and JSTL) when authoring
> JSPs.
>
>
> On Mon, Jun 16, 2014 at 11:12 AM, Paul Benedict <pb...@apache.org>
> wrote:
>
> > Maybe we should have two versions of the tags? One that accepts EL (and
> > never executes OGNL) and another one that does. Quite honestly, I have no
> > use for OGNL inside of JSP.
> >
> >
> > Cheers,
> > Paul
> >
> >
> > On Mon, Jun 16, 2014 at 11:05 AM, Paul Benedict <pb...@apache.org>
> > wrote:
> >
> > > That's disappointing that we're crippling the use of these tags. I just
> > > want to use EL for single evaluation. I don't need both OGNL and EL in
> my
> > > tags -- just EL.
> > >
> > >
> > > Cheers,
> > > Paul
> > >
> > >
> > > On Mon, Jun 16, 2014 at 10:44 AM, Dave Newton <da...@gmail.com>
> > > wrote:
> > >
> > >>
> > >>
> >
> http://struts.apache.org/release/2.2.x/docs/why-cant-i-use-jstl-style-el-expressions-in-struts-tags.html
> > >>
> > >>
> > >> On Mon, Jun 16, 2014 at 11:26 AM, Paul Benedict <pbenedict@apache.org
> >
> > >> wrote:
> > >>
> > >> > Is this a bug? I cannot use an EL expression to set the "value"
> > >> attribute.
> > >> > I don't understand why such a restriction exists. Thoughts?
> > >> >
> > >> > Cheers,
> > >> > Paul
> > >> >
> > >>
> > >>
> > >>
> > >> --
> > >> e: davelnewton@gmail.com
> > >> m: 908-380-8699
> > >> s: davelnewton_skype
> > >> t: @dave_newton <https://twitter.com/dave_newton>
> > >> b: Bucky Bits <http://buckybits.blogspot.com/>
> > >> g: davelnewton <https://github.com/davelnewton>
> > >> so: Dave Newton <http://stackoverflow.com/users/438992/dave-newton>
> > >>
> > >
> > >
> >
>
Re: does not accept expressions?
Posted by Andrew Carr <an...@gmail.com>.
I agree with the points Arron Johnson made. One context would be much
easier.
On Tue, Jun 17, 2014 at 10:55 AM, Aaron Johnson <jo...@gmail.com>
wrote:
> EL now supports many functions of OGNL. Would it make sense just to replace
> OGNL with EL? There doesn't seem to be much of a community around updating
> OGNL. The newer versions of EL have improved support for usage outside of
> the JSP environment. Is it possible to use EL in the other templates
> (Velocity, Freemarker, etc)? It is very confusing to have to work with
> multiple expression contexts (ValueStack lookups and JSTL) when authoring
> JSPs.
>
>
> On Mon, Jun 16, 2014 at 11:12 AM, Paul Benedict <pb...@apache.org>
> wrote:
>
> > Maybe we should have two versions of the tags? One that accepts EL (and
> > never executes OGNL) and another one that does. Quite honestly, I have no
> > use for OGNL inside of JSP.
> >
> >
> > Cheers,
> > Paul
> >
> >
> > On Mon, Jun 16, 2014 at 11:05 AM, Paul Benedict <pb...@apache.org>
> > wrote:
> >
> > > That's disappointing that we're crippling the use of these tags. I just
> > > want to use EL for single evaluation. I don't need both OGNL and EL in
> my
> > > tags -- just EL.
> > >
> > >
> > > Cheers,
> > > Paul
> > >
> > >
> > > On Mon, Jun 16, 2014 at 10:44 AM, Dave Newton <da...@gmail.com>
> > > wrote:
> > >
> > >>
> > >>
> >
> http://struts.apache.org/release/2.2.x/docs/why-cant-i-use-jstl-style-el-expressions-in-struts-tags.html
> > >>
> > >>
> > >> On Mon, Jun 16, 2014 at 11:26 AM, Paul Benedict <pbenedict@apache.org
> >
> > >> wrote:
> > >>
> > >> > Is this a bug? I cannot use an EL expression to set the "value"
> > >> attribute.
> > >> > I don't understand why such a restriction exists. Thoughts?
> > >> >
> > >> > Cheers,
> > >> > Paul
> > >> >
> > >>
> > >>
> > >>
> > >> --
> > >> e: davelnewton@gmail.com
> > >> m: 908-380-8699
> > >> s: davelnewton_skype
> > >> t: @dave_newton <https://twitter.com/dave_newton>
> > >> b: Bucky Bits <http://buckybits.blogspot.com/>
> > >> g: davelnewton <https://github.com/davelnewton>
> > >> so: Dave Newton <http://stackoverflow.com/users/438992/dave-newton>
> > >>
> > >
> > >
> >
>
--
With Regards,
Andrew Carr
e. andrewlanecarr@gmail.com
w. andrew.carr@openlogic.com
h. 4235255668
c. 4239489852
a. 101 Francis Drive, Greeneville, TN, 37743
Re: does not accept expressions?
Posted by Aaron Johnson <jo...@gmail.com>.
EL now supports many functions of OGNL. Would it make sense just to replace
OGNL with EL? There doesn't seem to be much of a community around updating
OGNL. The newer versions of EL have improved support for usage outside of
the JSP environment. Is it possible to use EL in the other templates
(Velocity, Freemarker, etc)? It is very confusing to have to work with
multiple expression contexts (ValueStack lookups and JSTL) when authoring
JSPs.
On Mon, Jun 16, 2014 at 11:12 AM, Paul Benedict <pb...@apache.org>
wrote:
> Maybe we should have two versions of the tags? One that accepts EL (and
> never executes OGNL) and another one that does. Quite honestly, I have no
> use for OGNL inside of JSP.
>
>
> Cheers,
> Paul
>
>
> On Mon, Jun 16, 2014 at 11:05 AM, Paul Benedict <pb...@apache.org>
> wrote:
>
> > That's disappointing that we're crippling the use of these tags. I just
> > want to use EL for single evaluation. I don't need both OGNL and EL in my
> > tags -- just EL.
> >
> >
> > Cheers,
> > Paul
> >
> >
> > On Mon, Jun 16, 2014 at 10:44 AM, Dave Newton <da...@gmail.com>
> > wrote:
> >
> >>
> >>
> http://struts.apache.org/release/2.2.x/docs/why-cant-i-use-jstl-style-el-expressions-in-struts-tags.html
> >>
> >>
> >> On Mon, Jun 16, 2014 at 11:26 AM, Paul Benedict <pb...@apache.org>
> >> wrote:
> >>
> >> > Is this a bug? I cannot use an EL expression to set the "value"
> >> attribute.
> >> > I don't understand why such a restriction exists. Thoughts?
> >> >
> >> > Cheers,
> >> > Paul
> >> >
> >>
> >>
> >>
> >> --
> >> e: davelnewton@gmail.com
> >> m: 908-380-8699
> >> s: davelnewton_skype
> >> t: @dave_newton <https://twitter.com/dave_newton>
> >> b: Bucky Bits <http://buckybits.blogspot.com/>
> >> g: davelnewton <https://github.com/davelnewton>
> >> so: Dave Newton <http://stackoverflow.com/users/438992/dave-newton>
> >>
> >
> >
>
Re: does not accept expressions?
Posted by Paul Benedict <pb...@apache.org>.
Maybe we should have two versions of the tags? One that accepts EL (and
never executes OGNL) and another one that does. Quite honestly, I have no
use for OGNL inside of JSP.
Cheers,
Paul
On Mon, Jun 16, 2014 at 11:05 AM, Paul Benedict <pb...@apache.org>
wrote:
> That's disappointing that we're crippling the use of these tags. I just
> want to use EL for single evaluation. I don't need both OGNL and EL in my
> tags -- just EL.
>
>
> Cheers,
> Paul
>
>
> On Mon, Jun 16, 2014 at 10:44 AM, Dave Newton <da...@gmail.com>
> wrote:
>
>>
>> http://struts.apache.org/release/2.2.x/docs/why-cant-i-use-jstl-style-el-expressions-in-struts-tags.html
>>
>>
>> On Mon, Jun 16, 2014 at 11:26 AM, Paul Benedict <pb...@apache.org>
>> wrote:
>>
>> > Is this a bug? I cannot use an EL expression to set the "value"
>> attribute.
>> > I don't understand why such a restriction exists. Thoughts?
>> >
>> > Cheers,
>> > Paul
>> >
>>
>>
>>
>> --
>> e: davelnewton@gmail.com
>> m: 908-380-8699
>> s: davelnewton_skype
>> t: @dave_newton <https://twitter.com/dave_newton>
>> b: Bucky Bits <http://buckybits.blogspot.com/>
>> g: davelnewton <https://github.com/davelnewton>
>> so: Dave Newton <http://stackoverflow.com/users/438992/dave-newton>
>>
>
>
Re: does not accept expressions?
Posted by Paul Benedict <pb...@apache.org>.
That's disappointing that we're crippling the use of these tags. I just
want to use EL for single evaluation. I don't need both OGNL and EL in my
tags -- just EL.
Cheers,
Paul
On Mon, Jun 16, 2014 at 10:44 AM, Dave Newton <da...@gmail.com> wrote:
>
> http://struts.apache.org/release/2.2.x/docs/why-cant-i-use-jstl-style-el-expressions-in-struts-tags.html
>
>
> On Mon, Jun 16, 2014 at 11:26 AM, Paul Benedict <pb...@apache.org>
> wrote:
>
> > Is this a bug? I cannot use an EL expression to set the "value"
> attribute.
> > I don't understand why such a restriction exists. Thoughts?
> >
> > Cheers,
> > Paul
> >
>
>
>
> --
> e: davelnewton@gmail.com
> m: 908-380-8699
> s: davelnewton_skype
> t: @dave_newton <https://twitter.com/dave_newton>
> b: Bucky Bits <http://buckybits.blogspot.com/>
> g: davelnewton <https://github.com/davelnewton>
> so: Dave Newton <http://stackoverflow.com/users/438992/dave-newton>
>
Re: does not accept expressions?
Posted by Dave Newton <da...@gmail.com>.
http://struts.apache.org/release/2.2.x/docs/why-cant-i-use-jstl-style-el-expressions-in-struts-tags.html
On Mon, Jun 16, 2014 at 11:26 AM, Paul Benedict <pb...@apache.org>
wrote:
> Is this a bug? I cannot use an EL expression to set the "value" attribute.
> I don't understand why such a restriction exists. Thoughts?
>
> Cheers,
> Paul
>
--
e: davelnewton@gmail.com
m: 908-380-8699
s: davelnewton_skype
t: @dave_newton <https://twitter.com/dave_newton>
b: Bucky Bits <http://buckybits.blogspot.com/>
g: davelnewton <https://github.com/davelnewton>
so: Dave Newton <http://stackoverflow.com/users/438992/dave-newton>