Author | Message |
---|---|
duck10438
Posts: 36
|
Posted 20:32 Mar 29, 2020 |
Is it true that the controllers must exactly five servlets: Display Forums,Display Topics,Create Topic,Display Topic, and Post Reply. Can we have four views because Display Topic and Post Reply are separate operations leading to the same view. Also I have a conceptual question, is it allowed for MVC to have different number of views and controllers? |
cysun
Posts: 2935
|
Posted 21:29 Mar 29, 2020 |
A form processing controller usually has two actions -- one to display the form and one to process the submitted data, and each action has its own view. Other controllers usually have one view per controller. Redirect is considered a special "view". |