Suppose that we have a page flow JSP1->JSP2->...->JSPn refering to a use case UC1, realized according to MVC pattern; the flow of the pages is managed by a servlet S1.
Suppose that we have to implement an other use case UC2 with flow page J1->J2->...Jx->JSP1->JSP2->...JSPn->Jx+1->...Jm, which "include" the complete flow page of the use case UC2.
We have two possible ways in proceeding: 1. according to pattern MVC I realize a servlet S1 wich invoke all the page J1, ..., Jx, JSP1, ..., JSPn, Jx+1, ..., Jm. In these case I reuse all the JSP page but I must to "copy and paste" from the servlet S1 all the code which manages pages JSP1, JSP2, ..., JSPn
2. I realize S1 so it can be "completely" reused and I realize S2 which manage the flow of the page Ji (1<=i<=n) and call S1 which control the flow JSP1, JSP2, ..., JSPn
What is the better soluzion in order to obtain more benefit in reusing code?