From: Juergen H. <jho...@us...> - 2008-10-20 14:58:41
|
Update of /cvsroot/springframework/spring/src/org/springframework/web/servlet/view In directory fdv4jf1.ch3.sourceforge.com:/tmp/cvs-serv9637/src/org/springframework/web/servlet/view Modified Files: RedirectView.java Log Message: added notes on Portlet redirects Index: RedirectView.java =================================================================== RCS file: /cvsroot/springframework/spring/src/org/springframework/web/servlet/view/RedirectView.java,v retrieving revision 1.31 retrieving revision 1.32 diff -C2 -d -r1.31 -r1.32 *** RedirectView.java 2 Jul 2008 10:22:36 -0000 1.31 --- RedirectView.java 20 Oct 2008 14:58:31 -0000 1.32 *************** *** 50,56 **** * with the flag on, they are considered relative to the web application root. * Since most web applications will never know or care what their context path ! * actually is, they are much better off setting this flag to true, and ! * submitting paths which are to be considered relative to the web application ! * root. * * @author Rod Johnson --- 50,62 ---- * with the flag on, they are considered relative to the web application root. * Since most web applications will never know or care what their context path ! * actually is, they are much better off setting this flag to true, and submitting ! * paths which are to be considered relative to the web application root. ! * ! * <p><b>NOTE when using this redirect view in a Portlet environment:</b> Make sure ! * that your controller respects the Portlet <code>sendRedirect</code> constraints. ! * When e.g. using {@link org.springframework.web.portlet.mvc.SimpleFormController}, ! * make sure to set your controller's ! * {@link org.springframework.web.portlet.mvc.AbstractFormController#setRedirectAction "redirectAction"} ! * property to "true", in order to make the controller base class behave accordingly. * * @author Rod Johnson |