I tried out the redirect: prefix support in Spring 1.1.2 and noticed that it does not resolve using logical view names but rather requires the resolved view name to be provided after the prefix.
For example the following does not resolve the redirect success view to addUser.do
I understand that redirects can be used to redirect outside the current web app, but I think that a typical use case (atleast for me) is for redirect within the same app - like redirect after a form submission for reasons like double submit or redirect to the original form so that the user can, say, add another User.Code:<bean id="addUserForm" class="com.foo.AddUserForm"> ... <property name="formView"> <value>addUser</value> </property> <property name="successView"> <value>redirect:addUser</value> </property>
Could Spring support another prefix such as redirect_internal: that uses the native view resolver ?
Thanks,
Sanjiv


Reply With Quote