Redirection to another controller in Spring Portlet MVC -
i have spring 3.0 portlet 2 controllers. controller-1 has default @rendermapping annotated method run logic decide view render, view-1 , view-2.
the model attributes view-1 populated in controller-1 , view-2 in controller-2.
how can redirect controller-2 when logic needs return view-2 can populate model attributes corresponding view-2.
you can call method in controller-2 controller-1.
pseudocode controller-1's render method
if(yourcondition){ return controller-2.rendermethod(); } populateyourmodel return view;
although want rethink piece of logic. sounds requests different in way ideally send them directly correct controller.
Comments
Post a Comment