Spring MVC AbstractWizardFormController Question

I use a controller implementation that extends Spring MVC

AbstractWizardFormController

This master controller will consist of 4 pages. The first 2 pages are used to collect information. The third page will display results based on what information is presented on pages 1 and 2.

So, to be more specific

Page 1 user selects status and other information

Page 2 user enters additional information such as contact information

Page 3 will display information depending on the information collected on the first two pages.

After that there are more pages, but they are irrelevant, therefore, if the first thing you think about is using onSubmit (), then this will not work, because this is not the end of the life of the controller.

I need to collect all the data from the first two pages, and then run the db request and return it to the third page. where and how is the best way to do this, do I run a query in the reference data when returning to the third page?

+3
source share
1 answer

You can use the postProcessPage method . Its API is transparent

, . , .

+2

Source: https://habr.com/ru/post/1760916/


All Articles