|
From: Colin S. <col...@ex...> - 2004-11-09 18:36:01
|
Great! I think this is the entry I put in there a while ago and never got around to implementing. Anybody using this should really treat all view names opaquely in the controller, if possible, so the controller has no idea that there's a redirect even happening.. So the controller should define properties (similar to successView) for all view names... jürgen höller [werk3AT] wrote: >I've just added a further minor new feature, following a JIRA suggestion: > >UrlBasedViewResolver supports a special "redirect:" prefix now, generating RedirectViews for the given rest of the view name. All regular view names will be resolved as usual, i.e. as InternalResourceViews or VelocityViews (typically prepending the specified prefix and appending the specified suffix). > >The benefit is that redirects can be specified through a special view name now, rather than through programmatically creating a ModelAndView with a RedirectView instance. In particular, this means that you can specify "redirect:myList.do" as "successView" for a SimpleFormController, just overriding "doSubmitAction" and not worrying about the success ModelAndView. > >Juergen > > >-----Original Message----- >From: spr...@li... >[mailto:spr...@li...]On Behalf >Of jürgen höller [werk3AT] >Sent: Tuesday, November 09, 2004 8:52 AM >To: spr...@li... >Subject: [Springframework-developer] Preparing for 1.1.2 > > >Hi everybody, > >Once again, I'm about to prepare for release 1.1.2 :-) >I've added two minor new features yesterday, following suggestions in JIRA: > >* added support for multi-dimensional collections to BeanWrapperImpl (e.g. "map[myKey][0]" or "map[myKey][0].name") >* added "setText(plainText, htmlText)" method to MimeMessageHelper, for alternative texts in the same mail > >If anyone has the chance, please give those a try, in particular the BeanWrapperImpl change. >I plan to do the actual release tomorrow now, if we don't encounter any remaining issues. > >Juergen > > |