Skip to Main Content

Java EE (Java Enterprise Edition) General Discussion

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

loading gif

843836May 12 2004 — edited May 12 2004
Hi 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
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jun 9 2004
Added on May 12 2004
3 comments
118 views