sources | A Template is written in an arbitrary (text-)format with configurable control tags. Macro libraries might extend the language. |
A JSP is written in HTML with fix control tags.
Tag libraries might extend the language. |
---|---|---|
source compilation | A Template is successively compiled by a Template Compiler and a Java Compiler into a Templet. | A JSP is successively compiled by a JSP Compiler and a Java Compiler into a Servlet. |
compiled Xlet | A Templet fits by default an optional API. It can reasonably be used out of an API's context and might fit & implement any API. | A Servlet essentially implements a mandatory API. It can not reasonably be used out of this API's context. |
execution | A Templet can be executed in many ways: an API-based framework, a simple method call, a static main-method, ... | A Servlet typically has to been executed in an API-based framework. |
output | The output of a Templet's execution is a stream in the arbitrary Template's format. | The output of a Servlet's execution is a stream (typically a requested online-webpage) in HTML format. |