I am moving forward from Struts2 controllers to Spring MVC 2.5
In case of Struts2 OGNL used to take care of populating the property of Action class. Here in Spring MVC 2.5 also they have a SimpleFormController
which can call the setCommandClass(UserDefinedBean.class)
in the constructor to auto-populate property of the bean class from parameters.
But in case of MultiActionController
(this seems very useful for my requirement) I am doing request.getParameter("paramName");
to get parameters from request. Is there any way to utilize the setCommandClass()
with MultiActionController
?
MultiActionController
rather than annotated controllers?