What’s the best practice to create a Spring MVC Search Form?
As example could be search a Client by name, lastname and category.
Is neccesary create a class with the same paramaters used in the search form, so then bind that class to the form?
Thank you very much.
This is one way. It is a good way to use this class (CommandObject / FormBackingBean) if you want to have somehow predefined values in the input fields of your serarch form.
If you do not need predefind fields, then the easyest way would be accessing the request parameters “direclty”: