Is there a way to reset the request in the action so that it is no longer
cancelled?
for example, I have the following clock in the beginning of my action's
perform method:
if(isCancelled(request))
{
return (mapping.findForward("cancel");
}
the "cancel" mapping returns the action to the same mapping via
<!-- User Modify Task action-->
<action path="/cycle/user/task" ...>
<forward name="init" path="/project/task/task_edit.jsp"/>
<forward name="cancel" path="/cycle/user/task.do?action=init"/>
<!-- NOTICE PATH! --!>
</action>
This creates an infinite loop as everytime the perform method is recalled,
the isCancelled() still returns true.
I have tried adding request=null to the isCancelled block without success.
I have temporarily fixed the problem by moving the isCancelled checker to
later in the code.
// isCancelled was here
// a whole bunch of stuff happens here...
// then...
String action = request.getParameter("action");
if("init".equalsIgnoreCase(action)||
isCancelled(request)||isCancelled(request){
// initialize the action settings
return (mapping.findForward(action);
}
else if( isCancelled(request))
Essentially,