I want a wait box to be displayed on the page till the Java code in the JSP finishes its execution. Is it possible, if you look at the code below, is it possible to have the waitBox displayed on the page until the "UA.activateUser(UUID);" finishes its execution.
JSP Code:
<html>
<head>
<title>Sorry</title>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width">
<script type="text/javascript" src="ext-all.js"></script>
<link rel="stylesheet" type="text/css" href="ext-all.css" />
<script type="text/javascript">
Ext.onReady(function(){
Ext.MessageBox.show({
msg:'Activating your account, please wait....',
progressText:'Authenticating E-Mail address',
width:300,
wait:true,
waitConfig:{interval:200}
});
setTimeout(function(){
Ext.MessageBox.hide();
Ext.example.msg('Welcome','Your account has been activated, You can now login');
},8000);
});
</script>
</head>
<body>
</body>
</html>
<%
String UUID=request.getParameter("uuid");
userOperation UA=new userOperation();
UA.activateUser(UUID);
%>