Date: Fri, 29 Mar 2024 05:17:27 +0000 (UTC) Message-ID: <1101582648.1.1711689447945@4a64903b76d4> Subject: Exported From Confluence MIME-Version: 1.0 Content-Type: multipart/related; boundary="----=_Part_0_1353044739.1711689447934" ------=_Part_0_1353044739.1711689447934 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Content-Location: file:///C:/exported.html
Hi All,
We are new to this Stripes framework. We are having a requirement to sho= w progress bar on submit of a form. Actually on click of submit button,&nbs= p;the action will take some time untill the next screen loads. So in t= hat mean time we need to disable the UI and show the Progress bar so that u= ser will not be able to edit anything untill the process completes.
Here is the code that we are using.
routesCreate.jsp:
<stripes:form beanclass=3D"com.verizon.irr.stripes.actions.RoutesActi= onBean" focus=3D"" >
<%-- Some form Inputs = --%>
<stripes:submit name=3D"addR= oute" value=3D"Add"/>
</stripes:form>
RoutesActionBean.java:
public class RoutesActionBean extends ActionBean{
private RouteService objRouteService =3D RouteServiceImpl.i=
nstance();
private Resolution nextScreen =3D new ForwardResolution("/jsp/=
home.jsp");
public Resolution addRoute(){
try{
logger.debug("addRoute [BEGIN]");
objRouteService.addRoute(route);
nextScreen =3D new ForwardResolution("/js=
p/routes.jsp");
}
catch(Exception e){
getContext().getValidationErrors().add= ("route.prefix", new SimpleError(""+e.getCause()));
nextScreen =3D new ForwardResolution("=
/jsp/routesCreate.jsp");
}
logger.debug("addRoute) [END]");
return nextScreen;
}
}
The addRoute() operation in backend will take 30 - 40 seconds depends up= on the inputs provided by user. So we need to show how much processing comp= leted to the user in progress bar. Please guide us.
--Thanks in advance