|
From: Darren D. <da...@da...> - 2004-03-11 14:23:19
|
> We have a concrete requirement to be able to override a viewname select= ed > by a controller in a postHandle() method of an interceptor. having woken up now and put a little thought into this, I can handle my immediate requirements elegantly enough within the existing framework.=20 Specifying model attributes to override velocity subtemplates will do the trick - it just needs some reworking of the top-level templates themselve= s mostly. I don't know whether the proposal may still be of use if someone had a real need to override the entire view though (say to change from an html based view to a PDF/Excel one). I could see that type of thing as still being a possible requirement that would require mutators on ModelAndView. Regards, --=20 Darren Davison Public Key: http://www.davison.uk.net/key.jsp |