2010-12-10 11 views
0

Ich habe mich gefragt, was der seperator für params ist (@ActionMapping(params ="...");)Spring MVC: Was ist der params Separator

Ich mag eine Zurück-Button in einem Formular platzieren, die bereits eine nächste Taste hat, und ich habe lesen Sie in der Dokumentation , dass ich tun kann: myParam!=myValue Dinge zu ignorieren, so würde ich mag tun sonething wie:

@ActionMapping(params="myAction=registerUser**SEPARATOR**nextParam!=previous"){} 

@ActionMapping(params="nextParam=previous"){} 

Antwort

2

params ist ein Array:

@ActionMapping(params = {"myAction=registerUser", "nextParam!=previous"}) 
Verwandte Themen