I've been doing a lot of work with Spring MVC, and while some of it maps to things I've done with other frameworks like Struts, other things are different. That is, different enough for me to have to read source code, search the forums, and browse Javadocs.
In an effort to share what I've learned (and in hoping to get others to do the same), I'll attempt to catalogue tips and tricks with Spring MVC.
I've found it useful to actually wrap the whole <spring:bind> <input xxx> stuff into a tag that is similar to those found in struts. For example, I have a WEB-INF/tags/form/text.tag file that is the following:
I have similar tag files for other form elements, as well as for errors like so:
Then, creating a spring bound form is as simple as with Struts:
Hope that helps,
Jon