protected ActionForward getActionForward(ActionMapping mapping, HttpServletRequest request, HttpServletResponse response)
{
if(request.getAttribute(Globals.JUMP_KEY) != null) {
JumpBean jump = (JumpBean)request.getAttribute(Globals.JUMP_KEY);
PanelStack panelStack = Panel.getPanelStack(request);
if(panelStack.peek(2).getType().equals(Panel.Type.EDIT)) {
EditPanel panel = (EditPanel)panelStack.peek(2);
return Panel.getForward(panel.getAction(Action.Type.SAVE).getAction(), request);
} else if(panelStack.peek(2).getType().equals(Panel.Type.LIST)) {
return jump.getForward();
}
}
if(request.getAttribute("external_person_id") != null
|| request.getAttribute("external_company_id") != null)
{
PanelStack panelStack = Panel.getPanelStack(request);
EditPanel panel = (EditPanel)panelStack.peek(2);
return Panel.getForward(panel.getAction(Action.Type.SAVE).getAction(), request);
}
else
return null;