well,
this will blow all your socks off.
I got
something to work, and remaining in line with my "REDUCE THE JAVASCRIPT"
policy
here
is what i did...
I just
plugged some code into my actionhandler to evaluate a state property on my
actionform. If it was a certain state i either perform usual processing or just
by pass the processing and show the JSP which gets rebuilt
anyways...
great!!
public ActionHandlerResponse
executeAction(ActionMapping mapping, ActionForm form, HttpServletRequest
request){
System.out.println("In " +
this.getClass());
actionFormObject = (Vat201ReturnActionForm)form; aRequest = request; ActionErrors errors = null; if (actionFormObject.getRefreshOption()){ // IF THIS IS TRUE DONT ALLOW ANY PROCESSING JUST REBUILD JSP //
THIS boolean GETS SET AFTER FIRST TIME PROCESSING
return new ActionHandlerResponse(errors,mapping.findForward("success")); } errors = doFieldValidation(); if (errors != null) { actionFormObject.setAction("Edit"); return new ActionHandlerResponse(errors, new ActionForward(mapping.getInput())); } else { errors = doReturnUpdate(); if (errors == null){
return new
ActionHandlerResponse(errors,mapping.findForward("success"));
} else { actionFormObject.setAction("Edit"); return new ActionHandlerResponse(errors, new ActionForward(mapping.getInput())); } } //return new ActionHandlerResponse(errors, mapping.findForward("mainMenu")); }
|
Title: RE: Can anyone help with solving the "BACK" button problem, in th e browser?
- Re: Can anyone help with solving the "BACK&q... Dudley [EMAIL PROTECTED]
- Re: Can anyone help with solving the "B... William Jaynes
- Re: Can anyone help with solving the &qu... Jeff Trent
- RE: Can anyone help with solving the "B... Dudley [EMAIL PROTECTED]
- RE: Can anyone help with solving the "B... Dudley [EMAIL PROTECTED]
- Re: Can anyone help with solving the &qu... Ted Husted
- RE: Can anyone help with solving the &qu... Craig R. McClanahan
- RE: Can anyone help with solving the "B... Trieu, Danny