Web flow add model attribute for binding with form values

前端 未结 2 1168
春和景丽
春和景丽 2020-12-20 01:22

I\'m new to web flow, so I\'m not sure how to do this: I have a spring mvc controller, and I have a spring webflow. One of the flow states is supposed to display a form for

2条回答
  •  悲&欢浪女
    2020-12-20 01:46

    I use to declare my controller or handler at application-context.xml for example:

    
    
        
        
    
    

    then in my flow i can call the id object and some method:

    And if you need a transaction you aldo can do it inside an action method for example:

    
        
            
    
    
    
    
    
            
    
    

    I hope it helps.

提交回复
热议问题