I agree, you should be using indexed tags, and they are two different things as 
Dave has stated.


>>> Dave Newton <davelnew...@gmail.com> 6/27/2013 5:19 PM >>>
On Thu, Jun 27, 2013 at 4:38 PM, Eric Lentz  <ericle...@outfastsource.com>
wrote:

>     <s:textfield name="foos[%{#stat.index}].aString"
> value="%{foos[#stat.index].aString}" />
>

Here you're doing to explicitly different things:

1. Provide a name (a string) with an embedded expression evaluation.
2. Execute an OGNL expression to retrieve a value.

Normalizing these things to be the "same thing" makes no sense, because
they're different things and must be treated as such. How would you propose
to make them the same but end up with different results?


>     <s:property value="foos[#stat.index].aString" />
>

Here you're choosing not to explicitly wrap the OGNL expression in %{}.

IIRC there's an option to force the use of %{}, but  this is the same thing
as in the "value" attribute above, you'd just decided not to wrap it in the
OGNL escape.

At best there are two different things, and I'm not really sure how they
could be the same thing if they're used manually as values.

The *actual* solution is to provide indexed tags.

Dave


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org

Reply via email to