How to avoid WSOD (blank screen) while loading long-running initialization data in Struts2?

前端 未结 2 1226
说谎
说谎 2020-12-22 01:38

I need to do the following:

  1. User logs in.
  2. Redirected to welcome screen.
  3. Looks at the welcome screen while lots of records are loaded.
2条回答
  •  庸人自扰
    2020-12-22 02:23

    Thank you for the AJAX idea.

    However, the answer I was looking for was in fact Struts interceptor "execAndWait". I decided to use it over AJAX because I am dealing with existing application and all the Struts plumbing is in place. This is the Struts guide on this

提交回复
热议问题