Web layer, how complete Model
I've got a problem designing a web layer of my recent application. I used Struts and later Spring MVC on my projects last year, but these project weren't too complex so the design "one page, one controller" was sufficient.
Now I feel I need more sophisticated approach. What is the problem? The pages of my application are going to be rich. The page will contain not only the "main" thing (table of users, form, etc.), but also other components requiring dynamic processing (last logged in users, best selling products, etc.). I my current way of development these components would mean adding neccessary data to the Model in each controller for a page in which this component is used. This means repeating myself again and again. And what if I decide to change a component for another or add this "tiny table" to 10 pages?
Do I miss some important design approach or a suitable open-source framework? This problem has to be so common I know many of you solved this before? Declarative pages? XML?
Thangs a lot.