Hi
I have implemented this functionality .....long time back ..so remember a small bit of it ..
On onClick() event , instead of directly calling your Action [ /abc/xyz/pqr.do ] , call a javascript function.
This javascript function is defined in the same jsp.
This javascript function will , in turn , submit your form.
1. Before placing your logic in javascript function, add a html div tag with an id [ <div id = "progressID"> </div> ] around a portion/section of JSP where you want to show Progress bar.
2. Have a boolean variable at Session level which is initially set to "false" [ which means that your Action is not completed ] so
place a logic in your
java script function like
if (!isActionCompleted)
{
// show div tag contents means your progress bar
}
else
{
// show div tag contents means your progress bar
}
~ Thanks
Abhay
Oracle certified JPA Developer (1Z0-898),Oracle certified Java 8 Programmer I (1Z0-808), Oracle Java Web Service Developer (1z0-897), Oracle certified Java 7 Programmer, SCJA 1.0, SCJP 5.0, SCWCD 5.0, Oracle SQL Fundamentals I, CIW Certified Ecommerce specialist