With the new Spring 1.1.2 release, I can move an app away from CVS HEAD (I know. bad boy).
I was using the new redirect: notion in Spring MVC where I was able to change:
Get rid of the new RedirectView() so the Controller doesn’t even know that I am doing a redirect
return new ModelAndView(getSuccessView(), “id”, foo.getId());
Use the new redirect: syntax in my action-servlet.xml
<property name=”successView”><value>redirect:/listAuctions.html</value></property>
Set the redirectContextRelative attribute to true in my Velocty View Resolved (this is true by default)
<bean id=”viewResolver”
class=”org.springframework.web.servlet.view.velocity.VelocityViewResolver”>
<property name=”exposeSpringMacroHelpers”><value>true</value></property>
<property name=”requestContextAttribute”><value>rc</value></property>
<property name=”redirectContextRelative”><value>true</value></property>
<property name=”cache”><value>true</value></property>
<property name=”prefix”><value>/WEB-INF/velocity/</value></property>
<property name=”suffix”><value>.vm</value></property>
</bean>
March 27th, 2006 at 8:46 am
I can have a implementation possible in Struts as
—>
action.getServlet().getServletContext().getRequestDispatcher(”/pages/ErrorPage.jsp”).forward(
request,
response);
I want to work with same way in Spring also.
Can anyone help me??????????
November 21st, 2006 at 12:03 am
asasa