|
From: Seth L. <set...@gm...> - 2004-07-29 08:55:07
|
> No, the whole point is that the controller right now doesn't know what
> actual text of the view name is (it gets it from the success property
> for example, but it knows if it should return it as
> new ModelAndView(getSuccessView(),...
> which is for a normal view (TilesJSTLView), or as
> new ModelAndView(new RedirectView(getSuccessView(), true))
Right, we definitely don't want the controller knowing the view names.
I meant to merely suggest that the controller has two properties, one
successView and another of business meaning (call it leaveView). My
previous example would change to:
if (XXX) {
return new ModelAndView(getSuccessView());
} else if (XXX and YYY) {
return new ModelAndView(getLeaveView());
}
But I see exactly what you are saying...
Seth
|