Confusion about controllers!
I hope someone can help me out. I am little confused about Controllers.
A controllers job is it to take the request, prepare the data, add it to the request (with spring add it to new ModelView for example). Is this right?
For example if i have a page to choose different operations. The next view is an input form which differs depending on which operation was choosen.
chooseoperation.jsp -> input.jsp
with adding controllers it would look something like this
chooseoperation.jsp -> Controller (prepare data) -> input.jsp
but if input.jsp contains a form. i need a forward to the InputFormController not the input.jsp itself, right?
must look something like this:
chooseoperation.jsp -> Controller (preparing information for input dialog) -> InputFormController - uses view -> input.jsp
can i forward from a class implementing Controller to a SimpleFormController?
big thx in advance