Win a copy of Java EE 8 High Performance this week in the Java/Jakarta EE forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Display Animation While Processing  RSS feed

Ranch Hand
Posts: 136
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi All,
Suppose I have a login situation, where the user enters a username/password on a login screen, clicks submit, and the request is forwarded to a JSP for processing. Now, while the user waits, an animated gif is displayed, letting the user know the request is processing (I'm sure you've all seen these). When processing is complete, the user is forwarded to the proper page automatically. I've done this before, but I'm not sure how it works. Basically, once the user submits the login info, it is forwarded to authenticate.jsp. On this page, I've put some simple HTML, which includes the animated gif, and a sendRedirect() based on the authentication results. Now, my question is, when the request gets to the server, does the server interpret the HTML and send it back, while simultaneously executing the java code in the JSP. In other words, when the server receives a request for a JSP, does it send the response in a piecemeal fashion, sending data as it is interpreted, like normal HTML, or does it process the java code first, then start sending back data? I imagine it must be the second, since the java code can be embedded all over the HTML.
[ April 01, 2004: Message edited by: Winston Smith ]
Consider Paul's rocket mass heater.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!