The way you have coded...You have both the items on the same page
I mean the image to show that your data is loading and the activity which happens before the image is shown
But the requirement which i have is in such a way that.....There are two individual pages....
Once a button is pressed on a
JSP (1st page) a new window opens up......which shows the result((Second page)Image has to be shown on this page)