How to pass parameters to spring webflow

 ̄綄美尐妖づ 提交于 2019-12-04 11:06:29

I figured it out. In the end it was very simple and i just had to pass the parameters in url and get the parameters that I pass using input tag in the flow.xml. Earlier i wasn't using the input tag.

Url will be something like ths

http://localhost:8080/modifyPerson?personName=xxx

Then in flow.xml personName parameter that is passed is retrieved using input tag and set to the model.

 <input name="personName"/>

 <view-state id="modifyBasics" view="modifyBasics" model = "person">
    <on-render>
        <set name="person.personName" value="personName"></set>
    </on-render>
    ....
 </view-state>
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!