How do you do the following in Spring 3.0? (I foun开发者_JAVA百科d so many results, I'm not sure which is the right way)
What I want to know is how to do the following in the "best practice" standart Spring 3.0 Annotation way
- Multiple page form (How to use
@SessionAttributes
) - Multiple submit buttons on a form (should I use
@RequestMapping(params={"btn1"}...)
?) - Automatic binding of form fields to beans (
@InitBinder
? must it use "Spring" forms?)
- Multiple page form -- have a look at Spring Web Flow
- Multiple submit buttons -- @RequestMapping(params={"btn1"}...) should do the job
- Automatic binding -- better to use Spring Conversion with Converters - (they are stateless in difference to Binders)
精彩评论