Architecture mode comparison in the web development framework (1)

zhaozj2021-02-16  62

Architecture mode comparison in the web development framework

WANG Hailong

table of Contents

Architecture mode comparison in the web development framework ... 1

Catalog ... 1

Order ... 1

Architecture Mode Architectural Pattern's Basic Concept ... 2

Server Page (page content and logic) ... 2

ASP.NET example ... 3

JSP example ... 5

XSP example ... 7

Page control reuse ... 8

Page content and style separation, (XSLT) ... 9

Page Enter Validation Validation. 12

ASP.NET example ... 12

Apache struts example ... 13

Apache Cocoon's example ... 14

Database Driven Page. 15

Multi-language support ... 16

User identity confirms Authentication and Authorization Authorization. 17

ASP.NET server-side configuration file Web.config example. (8) ... 17

Server-side configuration file for the Java web framework Web.xml. ... 18

SOAP Web Service. 19

sequence

This article discusses the comparison between the two Class WEB Development Frames - Java Web Framework and Microsoft's .NET Framework.

The Java web framework involved includes: Cocoon, Struts, Axis, Xalan, etc. Apache open source projects, SourceForge.NET open source project echo.

Architecture mode involved Architectural Pattern includes:

Server Page, (page content and logic)

Page Control Reuse, (Taglib)

Page content and style separation, (XSLT)

Page Enter Validation Validation,

Database Driven Page,

Multi-language support,

User identity confirms Authentication and authorize Authorization,

SOAP Web Service.

Architecture Mode Architectural Pattern Basic Concept

The mode in software development is different depending on the granularity of the problem, from high to low, divided into 3 levels:

Architectural Pattern Architectural Pattern

Design pattern design Pattern

Implementation Pattern

Architectural Pattern is the highest level in the mode, indicating the most basic system composition, usually provides a set of predefined subsystems. For example, user and file system security policy model, N-Tier structure, component object service, name service (Naming Service), server session key Keeping and traction; for example, Container mode - In J2EE technology, Web Server is servlet and JSP's Container, Application Server is a Container of EJB; and also, the MVC structure we are well known is also the hierarchy of architecture mode.

Design Mode Design Pattern is the second level in the mode, which is used to handle problems in programming. For example, [Gang Of Four] summarizes 23 basic design patterns - Factory Pattern, Observer Pattern, etc.

Implementing Mode Implementation Pattern is the lowest is also the most specific level, processing specific to programming languages. For example, name, variable name, naming rules for the function name; the rules of abnormal processing, and so on. This article describes some of the architectural modes in the web development framework in an example (Java and .NET).

Server Page, (page content and logic)

Page Control Reuse, (Taglib)

Page content and style separation, (XSLT)

Page Enter Validation Validation,

Database Driven Page,

Multi-language support,

User identity confirms Authentication and authorize Authorization,

SOAP Web Service.

转载请注明原文地址:https://www.9cbs.com/read-23538.html

New Post(0)