I tried to simplify the problem when I posted my question. Here is the actual scenario. Every piece of data displayed on my page is displayed using a tiles - thats for uniformity across the application. There are around 1000 rows being dispalyed, and each row has 10 columns (thus the figure 10k).
The business users want to see all the rows on one page. I really have to go with the tiles / servlet filters thing. That's how the application was written. It is beyond me to make those decisions. I have to find a way to optimize the current page. Basically I need to find a way to stop the filters being called for a tiles:insert. Once that happens, I should be on my way. David Friedman <[EMAIL PROTECTED]> wrote: Have you considered looking at a template engine such as Velocity or Freemarker? I'm sure it would have greater efficiency than reinvoking the servlet and filter chains 10k times. And yes, I will hold back my urge to ask why you are putting 10k items on any page in the first place. Regards, David -----Original Message----- From: Bhay Zone [mailto:[EMAIL PROTECTED] Sent: Monday, September 11, 2006 4:12 PM To: user@struts.apache.org Subject: Each tiles:insert invokes ServletFilter Hi, I have a jsp page in which tiles:insert is called 10,000 times. I have 7 servlet filters defined in the application. My problem is that for each tiles:insert the entire filter chain is also invoked. This degrades my page rendering. I replaced the tiles:insert with out.println - in this case, the filter chain was not getting called and page performance improved dramatically. I want a way to continue using filters and tiles, but avoid the filters being called for each tiles:insert. I have to find a solution to this. Any help is appreciated. Thanks, Bhayzone --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] --------------------------------- Find out what India is talking about on - Yahoo! Answers India Send FREE SMS to your friend's mobile from Yahoo! Messenger Version 8. Get it NOW