开发者

Spring MVC 3.0 Annotations - Conversation Forms - Beginner Questions

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)
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜