I have a query please reply as early in a servlet
I have code
out.println(" Wait records r updating");
some code for updating a records;
redirect to next page and show by using send redirect
now i want show "Wait records r updating" for the time period it takes to update the records.
How it is possible please reply as early.
thanks in advance
i only have a fair idea baout it but i will try.
you must be update the records using executeUpdate() method
there is a method whose output is boolean.
boolean b = stmt.execute(sql);
Use the condn. for true/false in if( condn.)
say if the records get updated then it is true and the action performed should be the redirecting of the page.