Spring MVC - passing variables from one page to anther

后端 未结 3 1509
野的像风
野的像风 2020-12-19 17:01

I need help. I am working on a project where I have multiple pages and multiple forms; each page has one form. I just need to be able to pass values from one jsp to another.

3条回答
  •  旧时难觅i
    2020-12-19 17:27

    The simplest way is to use hidden fields in the second page(s) to store what the user has enetered in the first form. This way, all the fields, inclusing those from the first page, will be submitted with the second form(s).

提交回复
热议问题