Perhaps you haven't described the whole problem, but why not put the check in displayOutline()
itself? perhaps route to a displayOutlineOrHelp()
method, which looks essentially like
ModelAndView displayOutlineOrHelp(...) {
Unit unit = ... //code to get the unit the request refers to
return unit.isAvailable() ? displayOutline(...) : displayHelp(...);
}
Vinay Sajip
2009-09-11 06:02:55