Content deleted Content added
m replace link to deleted Portal:Java (programming language) with Portal:Computer programming |
updates |
||
Line 6:
{| class="wikitable"
|-
! Action-based frameworks:
| [[Apache Struts 2|Apache Struts]], [[Spring Framework|Spring MVC]]
|-
! Component-based frameworks:
| [[Apache Click]], [[Apache Tapestry]], [[Apache Wicket]], [[
|-
! Web template systems:
Line 17:
|}
* [[
* In contrast, Struts and the [[Spring Framework|Spring MVC Framework]] are action-oriented frameworks that provide a thinner [[abstraction layer]] over the servlet [[API]].
* Apache Tiles is a templating framework designed to work with Struts.
* [[Facelets]] is a view definition and templating technology designed to work with JSF.
* [[SiteMesh]] can be used with any [[
* Facelets, Tapestry and Wicket have their own templating approaches based on [[HTML]]/[[XHTML]].
* [[Apache Click]] uses HTML based [[Apache Velocity]] templates and [[
==Servlet API==
{{main |
The Servlet API is the foundation of almost all Java Web View technologies. Servlet provides the basic mechanism for writing Java [[
==
{{main |Jakarta
* Built on top of the Servlet API, JSP provides a document-centric, tag-based templates, server programming model which can generate many forms of textual content.
Line 37:
==Apache Struts==
{{main |
* Struts provides for a [[
* Requests are received by a Java Class (Controller) which can decide which View to display.
* The actual View can be written in different view technologies, like JSP, free marker template, velocity template etc.
Line 46:
==Apache Tapestry==
{{main |
* A component-based view framework.
Line 56:
* Uses the [[Post/Redirect/Get]] navigation pattern for form submission.
* '''Competitor''': Wicket, JSF, HybridJava
==Apache Tiles==
{{see also |d:Special:EntityPage/Q28912908|l1=Apache Tiles}}
* This is an HTML templating framework based on the [[composite pattern]].
* It allows for the HTML page to be broken up into multiple "pagelets", called Templates, Definitions and Composing pages.
* At [[runtime (program lifecycle phase)|runtime]] the pagelets are stitched together to generate the final HTML. Pages are written in JSP.
* '''Competitor''': SiteMesh
==Apache Wicket==
{{main |
* A component-based view framework.
Line 68 ⟶ 76:
* '''Competitor''': Tapestry, JSF, HybridJava
==
{{main |Jakarta
* A specification for component-based view frameworks.
* [[Eclipse Mojarra]] and Apache MyFaces implementations are available
* Typically uses Facelets for XML/XHTML-based templating.
* Classes are written as POJOs, with Annotations or XML configuration files used to associate them with page and component templates.
Line 82 ⟶ 90:
==SiteMesh==
{{main |
* SiteMesh is an HTML templating framework based on the "Decoration" model.
Line 92 ⟶ 100:
==Spark==
{{main |
* Spark a micro web framework built around a simple routing system
Line 98 ⟶ 106:
* It supports three different templates engines: [[Apache Velocity|Velocity]], [[FreeMarker]] and [[Mustache (template system)|Mustache]]
* It aims to facilitate rapid development, and does not make use of annotations or proprietary solutions.
==See also==
{{Portal|Computer programming}}
* [[List of web service frameworks]]
* [[List of Java Frameworks|List of Java technologies]]
|