struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Dale Newfield <d...@newfield.org>
Subject Re: Calculate module of index in Struts2 iterator
Date Sat, 25 Dec 2010 15:09:10 GMT
On Dec 24, 2010, at 1:29 PM, JOSE L MARTINEZ-AVIAL <jlmagc@gmail.com> wrote:
> Thanks for the advice!! I'll follow it.

The best example I forgot to include is when you want to pass in to an attribute a string
whose value is the same as the name of one of your action properties.

foo="user" can be confusing, but foo="%{'user'}" and foo="%{user}" are both unambiguous to
struts and clear to a human reading the code.

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


Mime
View raw message