Implementation of the HandlerMapping interface to map from a request
parameter to request handler beans.
The default name of the parameter is "action", but can be changed using
ParameterHandlerMapping.setParameterName setParameterName() .
The bean configuration for this mapping will look somthing like this:
<bean id="parameterHandlerMapping" class="org.springframework.web.portlet.handler.ParameterHandlerMapping">
<property name="parameterMap">
<map>
<entry key="add"><ref bean="addItemHandler"/></entry>
<entry key="edit"><ref bean="editItemHandler"/></entry>
<entry key="delete"><ref bean="deleteItemHandler"/></entry>
</map>
</property>
</bean>
Thanks to Rainer Schmitz for suggesting this mapping strategy!
author: John A. Lewis author: Juergen Hoeller since: 2.0 See Also: ParameterMappingInterceptor |