Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 112523
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 11, 20262026-05-11T02:33:29+00:00 2026-05-11T02:33:29+00:00

Is there a way to get struts 2 (using tiles) to build the whole

  • 0

Is there a way to get struts 2 (using tiles) to build the whole page before sending it to the browser? I don’t want the page to be build ‘progressively’ in the browser one part at a time.

The main problem I’m trying to solve is that internet explorer 7 flashes/blinks the page even if only some of the content changes (firefox does this much more smoothly).

So that if I have a page with:

HEADER

some content

FOOTER

And the ‘some content’ area only changes between page loads, the FOOTER part still flashes the white background before filling it with the background color of the footer. I tought that maybe by getting struts to send the complete page it would load fast enough to eliminate the ‘blinking’. Now the FOOTER comes from the server a little bit later than the parts before it and so it flashes (in internet explorer, firefox displays the page smoothly).

NB: this is an important requirement for the site, and using ajax to load the middle content is out (as are frames or other ‘hacks’). The site is built using CSS and not a table layout, maybe I will have to use a table layout to get it to work…

About using tiles flush parameter: I tried that and it doesn’t work as I need. I would need a flush-parameter for the whole page. I have tried the normal jsp page directive ‘autoFlush=false’ but it didn’t work. I set this directive on my main template page (and not in the tiles).

Here is an example from the main template, which uses header, body and footer templates. With the Thread.sleep() I added the problem is easy to spot. The footer renders 2 secs later than the rest of the page.

  <body>   <div id='container'>   <t:insertAttribute name='header' flush='false' />    <div id='content'><t:insertAttribute name='body' flush='false'/></div>    <div class='clear'></div>   <% Thread.sleep(2000); %>   <t:insertAttribute name='footer' flush='false' />   </div>   </body> 

UPDATE

Thanks for the comments. The requirement is actually almost reasonable as this isn’t a normal web page, think embedded.

But apparently there is no way of configuring IE to start rendering after some delay (like firefox has a configurable delay of some 100ms)?

I tried to intercept the TilesResult but the method doExecute is run before the whole content is apparently evaluated, so the method has already exited before the jsp is evaluated (my Thread.sleep() test). I was wondering how I could render the whole response to a string and then output that all at once to the browser.

I know that this isn’t foolproof and network delays etc may factor in this, but if I could get the response to output all at once and maybe use a table based layout (IE possibly renders the table only after the table closes) this could work reasonably.

Or then try to get this switched to firefox or maybe forget all about this little glitch…

UPDATE 2

This started to bother me so I did some investigation. If I had a plain jsp page (no tiles) the buffering works (with the buffer attribute), so that if I had my Thread.sleep() there the whole page rendered after two seconds if the page size was below the buffer size. But if I used tiles in the page (as in the example above) I couldn’t get the page to render at the same time (I even included the page directive in all my tiles-templates/’components’, no help). So tiles probably flushes the response somewhere?

Furthermore, the ‘problematic tiles’ was my body-part, which contained a struts:form tag. I replaced it with a normal form-tag and it worked as I wanted…

UPDATE 3

Ok, nobody seems to know the inner workings of tiles or struts tags… No big problem as this is a very specific case and requirement. I worked around it by using apache as a proxt in front of the application, and using apache’s proxy configuration options to specify a large buffer. I’ll mark this as answered.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. 2026-05-11T02:33:29+00:00Added an answer on May 11, 2026 at 2:33 am

    Can you use the ‘flush’ attribute on the tiles components?

    <tiles:insertAttribute name='body' flush='false'/> 

    In addition if the output buffer gets too big, it will flush anyway. Try increasing the buffer size?

    <%@ page language='java' buffer='500kb' autoFlush='false' %> 
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Ask A Question

Stats

  • Questions 124k
  • Answers 124k
  • Best Answers 0
  • User 1
  • Popular
  • Answers
  • Editorial Team

    How to approach applying for a job at a company ...

    • 7 Answers
  • Editorial Team

    How to handle personal stress caused by utterly incompetent and ...

    • 5 Answers
  • Editorial Team

    What is a programmer’s life like?

    • 5 Answers
  • Editorial Team
    Editorial Team added an answer Are you running on OS 3.0? I saw the same… May 12, 2026 at 1:19 am
  • Editorial Team
    Editorial Team added an answer It looks like you need to register Apache::Session::Memcached with Apache::Session::Wrapper,… May 12, 2026 at 1:19 am
  • Editorial Team
    Editorial Team added an answer Use DATENAME or DATEPART: SELECT DATENAME(dw,GETDATE()) -- Friday SELECT DATEPART(dw,GETDATE())… May 12, 2026 at 1:19 am

Related Questions

Is there a way to enforce/limit the types that are passed to primitives? (bool,
I'm working on my first java struts2 webapp and want to be able to
Is there a way to get which JSP is currently rendered, with JSTL or
Prototype library uses $('element-id') or $F('element-id') to get the element or value of a

Trending Tags

analytics british company computer developers django employee employer english facebook french google interview javascript language life php programmer programs salary

Top Members

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.