I am going to start by making a bold statement, then support that statement
with my observations.  After introducing XML + XSLT into your architecture
the need for Java Server Pages disappears!

The Model 2 architecture follows the MVC pattern.  The MVC pattern makes a
lot of sense for dividing the responsibilities of User Interfaces, include
web user interfaces.

Model 3 (2++) attempts to remove the complexity of looping and
conditional-branching within the "view".  In your "model 3" (2++)
architecture you add two additional technologies to accomplish this - XML
(Model) and XSLT (View).

For argument sake let's say that XML adds another layer to the model.  I
want to maintain the separation of logic, presentation and data. We use JSP
to create XML from the JavaBean in Model 2.  --> The JSP becomes a
conversion specification.  It doesn't makes sense to utilize JSP as a
conversion specification... one would quickly discover that all that was
happening was converting properties to an attributes and objects to
elements.  This would easily be automated.

I could also remove the JavaBean layer all together and replace it with a
XML to represent my data.  After I can retrieve my Model in XML, my JSP
completely loses its use.   I just return the XML + XSLT to Cocoon and it
returns the HTML page.

This table summarizes the shift:
                        Model 2                 -->             Model 3
(2++)
Model                   JavaBeans               -->             XML
View                    JSP                     -->             XSLT
Controller              Servlet         -->             Servlet

In regards to Model ++2... It is just Model 2 where the JSPs are not created
by developers or designers but by machine.  This is detailed by Daniel in a
previous message.

At this point, I am not convinced that we have a new architecture,
especially a JSP architecture.  Let me know your thoughts.

===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets

Reply via email to