hello everyone:
I have a little problem with a JSP... bassically, this is all there's inside:
Code:
out.println("Obteniendo");
out.println("<script language=\"JavaScript\">
location.replace(\"faltantes.jsp?host=" + host +
"&user=" + user + "&pass=" + pass +
"&database=" + database + "&inventario="
+ inventario + "\"); </script>");
the thing is, that the "faltantes" jsp points to a Java object doing quite a heavy job, maybe taking up to 3 minutes to finish and display a new page.... I'd like the user to see the message "Obteniendo" while he waits for the new page to load.
If I put a link to faltantes, and make the user click on it, then he will have to wait the 3 minutes and might be tempted to click on in again (since in this case, with a link, the page will wait for the next to load) so I'd like a link pointing to this jsp, and see the message while the job is doing in the background.... is that possible?
I would think that the order I'm printing on screen would define it... like, print the message, and wait for the next page to load.... is that so?
Thanks for everything