The right name would be model 1 & model 2:
Model 1 embeds navigation in the JSPs. It tends to be brittle when the number of pages gets large.
Model 2 combines JSPs with a servlet, usually a single front controller, which handles the navigation chores and leaves the JSPs to concentrate on presentation. All requests are sent from JSPs to the front controller servlet.
Struts and Java Server Faces are based on model 2 MVC.
Further to this there is also model2X which uses the JSP to create XML which is then transformed using an XSLT stylesheet; thereby seperating presentation from content generation.
No comments:
Post a Comment