Re: Question about 'if' tag

2009-09-24 Thread Dennis Atkinson
: Question about 'if' tag I think Pawel omitted something in the original reply. You can't say: That won't work. Instead, you have to say: 2009/9/23 Paweł Wielgus > Hi again, > firstly You should read about OGNL basics because You are using it, > the

Re: Question about 'if' tag

2009-09-23 Thread Thomas Sattler
> So it seems like no parameters are being passed in; in fact when I use > the braces to indicate no parameter, that doesn't work either. > > > > > > > > > > > > > > > > > > From: Wes Wannemacher &

Re: Question about 'if' tag

2009-09-23 Thread Paweł Wielgus
't work either. > > > > > > > > ____________ > From: Wes Wannemacher > To: Struts Users Mailing List > Sent: Wednesday, September 23, 2009 4:20:33 PM > Subject: Re: Question about 'if' tag > > In addition to what Pawel is sayin

Re: Question about 'if' tag

2009-09-23 Thread Dennis Atkinson
ork either. From: Wes Wannemacher To: Struts Users Mailing List Sent: Wednesday, September 23, 2009 4:20:33 PM Subject: Re: Question about 'if' tag In addition to what Pawel is saying, be careful that you also check the 'canEditCustomer(target)' c

Re: Question about 'if' tag

2009-09-23 Thread Wes Wannemacher
In addition to what Pawel is saying, be careful that you also check the 'canEditCustomer(target)' call in the target action since there is nothing to stop someone from figuring out the URL pattern and editing people they weren't intended to edit. -Wes 2009/9/23 Paweł Wielgus : > Hi Dennis, > You

Re: Question about 'if' tag

2009-09-23 Thread Paweł Wielgus
Hi Dennis, You are nesting tags, it's not possible/permitted, what You should do is something like: or Which simply is naming your iterator variable to "iter" and use it in if tag, depending on struts2 version it will be id or var. Best greetings, Paweł Wielgus. 2009/9/23 Dennis Atkinso

Question about 'if' tag

2009-09-23 Thread Dennis Atkinson
Hi all. In my Struts2 application, I have a collection of Customer objects, and various users have the rights to edit some of them and not others. I have created a Struts iterator tag, and in the iterator, I put the various Customer attributes into an HTML table. All this works. In one cell