differentiating multiple submit button using PropertiesMethodNameResolver

The name of the pictureThe name of the pictureThe name of the pictureClash Royale CLAN TAG#URR8PPP


differentiating multiple submit button using PropertiesMethodNameResolver



I have a form with different submit buttons in Spring MVC application which is in xml. I differentiated using ParameterMethodNameResolver like


<bean id="mnr" class="pkg.ParameterMethodNameResolver">
<property name="paramName" value="opt"/>
</bean>



But the problem here is, Method names are tightly bounded to button captions. So any modification in UI will affect java application. So I just want to use PropertiesMethodNameResolver.I used like


<bean id="mnr" class="pkg.PropertiesMethodNameResolver">
<property name="mappings">
<props>
<prop key="user.htm?opt=save">register</prop>
<prop key="user.htm?opt=delete">remove</prop>
</props>
</property>
</bean>



But it is not recognizing that url with params.It is expecting direct match url.So how can i solve this issue.









By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Popular posts from this blog

Arduino Mega cannot recieve any sketches, stk500_recv() programmer is not responding

Visual Studio Code: How to configure includePath for better IntelliSense results

C++ virtual function: Base class function is called instead of derived