Filtering bean properties

2005-07-28 Thread Konrad Billewicz
I have a report with a huge number of columns (about 150). In the prior form user can choose some of them. My current task is to show only choosen columns in the report. I'm unexpectedly uncertain how to do it elegantly (using, of course, Struts). The current version of this huge result page

RE: Filtering bean properties

2005-07-28 Thread Johnson, Kaerstin
:[EMAIL PROTECTED] On Behalf Of Konrad Billewicz Sent: Thursday, July 28, 2005 2:47 PM To: user@struts.apache.org Subject: Filtering bean properties I have a report with a huge number of columns (about 150). In the prior form user can choose some of them. My current task is to show only choosen columns

RE: Filtering bean properties

2005-07-28 Thread Adrian_Rios
-6411 Ext. 3863 e-mail: [EMAIL PROTECTED] -Original Message- From: Johnson, Kaerstin [mailto:[EMAIL PROTECTED] Sent: Thursday, July 28, 2005 12:03 PM To: Struts Users Mailing List Subject: RE: Filtering bean properties You could use JSTL if you'd like to check for whether you should print

Re: Filtering bean properties

2005-07-28 Thread Dave Newton
Konrad Billewicz wrote: How would you handle it? If the columns are all formatted the same (or even if they're not and I'm feeling saucy) I might consider writing a custom tag that does the entire report (maybe outputting XML for easy format changes? I dunno) or iterating over a

Re: Filtering bean properties

2005-07-28 Thread Ed Griebel
You could have a collection/array of fields that needed to be displayed. You would iterate on each record in the result set. For each row, you would then iterate thru the collection of field names, using the field name as a key to the record bean. I'd do it something like below, though there may