Calculate module of index in Struts2 iterator

2010-12-14 Thread JOSE L MARTINEZ-AVIAL
Hello, I'm using Struts2 iterator to setup a list of checkbox in a table(about 150 checkboxes). I want to have 10 checkbox per row, so I'm doing the following: It never goes through the if, so I'm assuming the

Re: Calculate module of index in Struts2 iterator

2010-12-21 Thread Li Ying
You can put the following debug code in your jsp: It may help you find out what the result of expression is. - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apach

Re: Calculate module of index in Struts2 iterator

2010-12-24 Thread JOSE L MARTINEZ-AVIAL
I had to put the expression between brackets: x Thanks JL 2010/12/21 Li Ying > You can put the following debug code in your jsp: > > > > > > It may help you find out what the result of expression is. > > - > To unsubsc

Re: Calculate module of index in Struts2 iterator

2010-12-24 Thread Dale Newfield
On 12/24/10 6:15 AM, JOSE L MARTINEZ-AVIAL wrote: x I guess I've not been around on this list much lately (darned work :-/ ). So my constant harping about this hasn't been so constant: I *really* advise people to always use %{} when writing OGNL in a taglib attribute. It makes it clea

RE: Calculate module of index in Struts2 iterator

2010-12-24 Thread Martin Gainty
ire. Étant donné que les email peuvent facilement être sujets à la manipulation, nous ne pouvons accepter aucune responsabilité pour le contenu fourni. > Date: Fri, 24 Dec 2010 09:05:05 -0500 > From: d...@newfield.org > To: user@struts.apache.org > Subject: Re: Calculate module of in

Re: Calculate module of index in Struts2 iterator

2010-12-24 Thread JOSE L MARTINEZ-AVIAL
Thanks for the advice!! I'll follow it. 2010/12/24 Dale Newfield > On 12/24/10 6:15 AM, JOSE L MARTINEZ-AVIAL wrote: > >> x >> > > I guess I've not been around on this list much lately (darned work :-/ ). > So my constant harping about this hasn't been so constant: > > I *really* advise peo

Re: Calculate module of index in Struts2 iterator

2010-12-25 Thread Dale Newfield
On Dec 24, 2010, at 1:29 PM, JOSE L MARTINEZ-AVIAL 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 f

Re: Calculate module of index in Struts2 iterator

2010-12-28 Thread Li Ying
That's just wired. The first idea in my head was, may be there is lacks of brackets in your expression. But then I checked the document of OGNL: http://www.opensymphony.com/ognl/html/LanguageGuide/apa.html Accordinting to this document, the operator [%] has higher precedence than operator [==].

Re: RE: Calculate module of index in Struts2 iterator

2010-12-24 Thread Dave Newton
u fourni. > > > > >> Date: Fri, 24 Dec 2010 09:05:05 -0500 >> From: d...@newfield.org >> To: user@struts.apache.org >> Subject: Re: Calculate module of index in Struts2 iterator >> >> On 12/24/10 6:15 AM, JOSE L MARTINEZ-AVIAL wrote: >> > x