In add action :
if (isTokenValid(request, true)) {//if not duplicate submitting, insert data
if (flag.equals("1")) stationeryApplyMgr.addStationeryApplyData(request, stationeryapply, stationeryApplyDetailList);
/* forward to the apply for stationery page(/employeeservice/stationeryapply/stationeryapply.jsp) */
return mapping.findForward("PAGE_KISS_EMPSRV_STATIONERY_APPLY_SUCCESS");
} else {//if duplicate submitting, save new token instead of old one
saveToken(request);
return mapping.findForward("PAGE_KISS_EMPSRV_STATIONERY_APPLY_SUCCESS");
}