This week's book giveaway is in the OCPJP forum. We're giving away four copies of OCA/OCP Java SE 7 Programmer I & II Study Guide and have Kathy Sierra & Bert Bates on-line! See this thread for details.
I was trying to use AJAX to call the servlet and forward it to a new JSP. I was doing this to create the loading image display animated but the page is not forwarded.
Can someone advise how to get the loading image animated when it goes from one JSP to the other JSP..
My problem is when I try to display loading image before the submit(without ajax) , It does not animate..After submission the image shows but does not animate..
But if I call thru Ajax, the loading image animate but I am not able to forward it to next JSP..
I know you are not supposed to use Ajax to move from the current JSP. BUT I woudl like to know how to get the loading image animated as it gets the data for the next JSP.
I would like to show animated display while request is being processed using AJAX.
JSP X (submit) ---> JSP Y
but the servlet takes time (lot od DB operations) to make request ready for JSP Y. I would like to display animated loading image on JSP X while the request is being processed