background preloader

TechnologieWWW

Facebook Twitter

Web application framework. History[edit] Around the same time, full integrated server/language development environments first emerged, such as WebBase and new languages specifically for use in the web started to emerge, such as ColdFusion, PHP and Active Server Pages. Types of framework architectures[edit] Most web application frameworks are based on the model–view–controller (MVC) pattern. Model–view–controller (MVC)[edit] Push-based vs. pull-based[edit] Three-tier organization[edit] In three-tier organization, applications are structured around three physical tiers: client, application, and database.[7][8][9][10] The database is normally an RDBMS.

Framework applications[edit] General-purpose website frameworks[edit] For example, Zend Framework. Discussion forums, wikis and weblogs[edit] For example, WikiBase/WikiWikiWeb. Organizational portals[edit] For example, JBoss Portal or eXo Platform. Content management systems (CMS)[edit] Features[edit] Web template system[edit] Caching[edit] Security[edit] Scaffolding[edit] Ajax[edit]

Web template system. The basic process for a server-side web templating system: content (from a database), and "presentation specifications" (in a web template), are combined (through the template engine) to mass-produce web documents. A web template system uses a template processor to combine web templates to form finished web pages, possibly using some data source to customize the pages or present a large amount of content on similar-looking pages.

It is a web publishing tool present in content management systems, web application frameworks, and HTML editors. Web templates can be used like the template of a form letter to either generate a large number of "static" (unchanging) web pages in advance, or to produce "dynamic" web pages on demand. Overview[edit] A web template system is composed of[citation needed]: The template and content resources are processed and combined by the template engine to mass-produce web documents. Motivations and typical uses[edit] Applications[edit] Mass-production[edit] <! <? Template engine (web) The following table lists the various web template engines discussed on Wikipedia and a brief rundown of their features. The content here is a work in progress. Engine (implementation) = engine nameLanguages = implementation language of the engine (not the template script language)License = Software license agreementPlatform = Computing platformVariables = script language power to use variablesFunctions = script language power to use functionsIncludes = script language power include external filesConditional inclusion = script language power to conditional includesLooping = script language power to do loops (for, while) or recursionEvaluation (language) = script language power to do "eval command" (to the implementation language)Assignment = set names and references to sub-templates (?)

For inclusion above[edit] References[edit] See also[edit] JavaServer Pages. Overview[edit] The JSP Model 2 architecture. JSP can be used independently or as the view component of a server-side model–view–controller design, normally with JavaBeans as the model and Java servlets (or a framework such as Apache Struts) as the controller. This is a type of Model 2 architecture.[3] JSP allows Java code and certain pre-defined actions to be interleaved with static web markup content, with the resulting page being compiled and executed on the server to deliver a document.

JSPs are usually used to deliver HTML and XML documents, but through the use of OutputStream, they can deliver other types of data as well.[4] The Web container creates JSP implicit objects like pageContext, servletContext, session, request & response. Syntax[edit] JSP pages use several delimiters for scripting functions. Java code is not required to be complete or self-contained within its scriptlet element block, but can straddle markup content providing the page as a whole is syntactically correct. eRuby. eRuby (Embedded Ruby) is a templating system that embeds Ruby into a text document. It is often used to embed Ruby code in an HTML document, similar to ASP, JSP and PHP. Usage[edit] eRuby allows Ruby code to be embedded within a pair of <% and %> delimiters. These embedded code blocks are then evaluated in-place (they are replaced by the result of their evaluation). Here are a few examples of eRuby usage: One line of Ruby Output like hello from <% print "hello" %> would replace the ruby code between the delimiters.

Alternatively, lines starting with a % sign are interpreted as Ruby as well: % ruby code Multiple lines These can appear less graceful because the beginning and ending are not quite the same. <ul><% 3.times do %><li>list item</li><% end %></ul> Outputting: list itemlist itemlist item The same code could also be written as: <ul> % 3.times do <li>list item</li> % end </ul> Expression result substitution Comments - this is the same as a comment in Ruby. #{string_name} Implementations[edit]