java - how to show "data loading" in a jsp page using servlets -


We have a classic JSP + Servlets application and want to show the type of message in the page when the "content is loading" message It takes some time to load.

Scenario:

  • Select Page1 (a.jsp) -> drop down ->
  • Change the URL to the server (B.JSP) Is sent back, white page is displayed, then data loads after 30 seconds

For those 30 seconds I have to show a spinner or some message.

Adding Ajax or jquery will require a design change that we can not do right now. Although this application already uses jQuery for other stuff, BJSP is calling DB from that page ...

Calling DB in JSP will be much more frowned. Based on the question, you

  // b.jsp 

Comments