ViewDestination destination = RenderUtils.getViewState().getDestination("exception"); RenderUtils.invalidateViewState(); if(destination!=null) { return destination.getActionForward();
if (RenderUtils.getViewState()!=null){ ViewDestination destination = RenderUtils.getViewState().getDestination("exception"); RenderUtils.invalidateViewState(); if(destination!=null) { return destination.getActionForward(); }
    public ActionForward processException(HttpServletRequest request, ActionMapping mapping,            ActionForward input, Exception e){	if (!(e instanceof DomainException)) {            addMessage(request, e.getMessage());            e.printStackTrace();        }	else {	    final DomainException ex = (DomainException) e;	    	    addMessage(request, ex.getKey(), ex.getArgs());	    	    ViewDestination destination = RenderUtils.getViewState().getDestination("exception");	    RenderUtils.invalidateViewState();	    if(destination!=null) {		return destination.getActionForward();	    }	}		return input;    }