Thanks for the reply. What I am trying to achieve is:
I want to show Page2.jsp based on a session attribute that will be set by the AJAX call from Page1.jsp. So I want to delay the displaying of page2.jsp and subsequent page unless I get response back from AJAX call made.