loading gif
843836May 12 2004 — edited May 12 2004Hi guys,
I'd like to know if it's possible to make this:
I go from a JSP to another one passing through a servlet as it's common,
but I'd like that servlet shows an animated gif during loading, before loading
the second JSP page.
Below my code:
JspFactory _jspFactory= JspFactory.getDefaultFactory();
PageContext pageContext = _jspFactory.getPageContext(this,request,response,null,false,8192,true);
response.setContentType("text/html");
PrintWriter out=response.getWriter();
String wait=null;
System.out.println("inizio");
wait="<html>"+
"<head>"+
"</head><body>"+
"<table align=center>"+
"<tr><td>"+
"<IMG SRC='img/ing035.gif'"+
"<tr><td>"+
"</table>"+
"</body>"+
"</html>";
out.println(wait);
//out.flush();
System.out.println("fine");
_jspFactory.releasePageContext(pageContext);
but using this the second JSP page doesn't load
Any solution?
bye