SlideShare a Scribd company logo
Web-Tier
DESIGNING ENTERPRISE APPLICATIONS WITH J2EE
CHAP: #4
BY:KASHF-UL-HUDA
J2EE Platform
oLayered set of system services
oTop layer of a “stack” of services that support an application.
oThe highest-level division is between
functions that are specific to a particular
application and those that occur in all Web applications.
oShare a common set of basic requirements
Web-Tier Application Structure
Sits on top of the J2EE platform
Providing common application functionality such as
◦ Dispatching requests
◦ Invoking model methods
◦ Selecting and Assembling views
Framework classes and interfaces are structural (Load bearing elements, underpinnings)
◦ Application developers extend, use, or implement
framework classes and interfaces to perform application-specific functions.
Web-Tier Application Framework Design
Model-View-Controller (“MVC”) is architectural design pattern for interactive applications.
Three separate modules:
◦ one for the application model with its data representation and business logic
◦ the second for views that provide data presentation and user input
◦ the third for a controller to dispatch requests and control flow.
Web-Tier Application Framework Design
MVC separates design concerns (data persistence and behavior, presentation, and control)
◦ decrease code duplication
◦ centralize control
◦ making the application more easily modifiable
Web-Tier Application Framework Design
Web tier does four basic things in a specific order
Web-Tier Application Framework Design
An enterprise application’s Web tier commonly has the following requirements:
◦ serving current and future client types.
◦ Web-tier controller must be maintainable and extensible
◦ Maintain application’s complexity, scalability, and software quality
◦ Choose appropriate technology for generating dynamic content
2.1 Structuring the Web Tier
Web-Tier discusses 2 Models.
◦ Model 1
◦ Model 2
Model 1: No controller servlet (hyperlinks, request parameters)
Model 2: servlet manages client communication and business logic execution
◦ easier to maintain and extend
◦ Provides a single point of control
MVC application framework implement a Model
2 application.
Web-Tier MVC Controller Design
Use servlets as controllers for processing requests and selecting views.
Front controller is responsible to receive request from client and dispatch it to application
model.
Centralizes an application’s request processing and view selection in a single component.
Selects and formats the next client view.
Controller Tasks
Identify the operations to perform.(Get, Post, URL mapping suffix and prefix)
Invoke model Method(if-else, Abstract Action)
Controlling Dynamic screen flow:
◦ The succession of views that a Web application user sees is called screen flow
Serve multiple client types.
Controlling Dynamic Screen flow
Support Multiple Client Types
Separate controller for each client type
Protocol router determine type of client from HTTP “user header”
Web-Tier MVC View Design
Display data produced by the MVC
model.
◦ Templating
A template is a presentation compone-
nt that composes separate sub-views
into a page with a specific layout
Web-Tier MVC Model Design
An MVC application model both represents business data and implements business logic.
Web Application Frameworks
J2EE BluePrints Web Application Framework (“WAF”)
This framework offers:
◦ Front Controller servlet
◦ Abstract action class
◦ Templating service
◦ Several generic custom tags
◦ Internationalization support
◦ Suitable for small, non-critical applications
◦ Learning purposes
Web Application Frameworks
Apache Struts
◦ Under development
◦ open-source
◦ highly configurable
◦ Large (and growing) feature list
◦ Include a Front Controller
◦ Action classes and mappings
◦ Utility classes for XML
◦ Automatic population of server-side JavaBeans
◦ Web forms with validation
◦ Internationalization support.
Web Application Frameworks
JavaServer Faces
◦ a Java specification for building component-based user interfaces for web applications and was
formalized as a standard through the Java Community Process being part of the Java Platform,
Enterprise Edition.
◦ Only for presenting user interface
◦ Support internationalization
◦ Validation
◦ multiple client types, and accessibility
◦ Standardization of the architecture and API will allow tool interoperation and the development of
portable, reusable Web-tier GUI component libraries.
Benefits of MVC
Decouples presentation and logic into separate components
Separates developer roles
Provides a central point of control
Facilitates unit testing and maintenance
Can be purchased instead of built
Provides a rich set of features
Encourages the development and use of standardized components
Provides stability
Has community support

More Related Content

PPTX
data abstraction ,encapsulation,A.D.T
PPTX
SQL, Embedded SQL, Dynamic SQL and SQLJ
PDF
Working of HTML,CSS and JAVASCRIPT with project
PPTX
Python_Sets(1).pptx
PPTX
Java Spring Framework
PPTX
Request dispacther interface ppt
PDF
CSS Lists and Tables
data abstraction ,encapsulation,A.D.T
SQL, Embedded SQL, Dynamic SQL and SQLJ
Working of HTML,CSS and JAVASCRIPT with project
Python_Sets(1).pptx
Java Spring Framework
Request dispacther interface ppt
CSS Lists and Tables

What's hot (20)

PPT
Sq lite database
PPTX
asp-net.pptx
PPT
ADO .Net
PPT
MYSQL.ppt
PPT
Asp.net.
PPT
Box Model
PPT
Access introduction
PPT
Web Engineering
PPT
Web Engineering
PPTX
Memahami instalasi sistem operasi server
PPT
Architecture of .net framework
PPTX
Windows form application_in_vb(vb.net --3 year)
PPT
Request dispatching in servlet
PPT
Lecture 01 introduction to database
PPTX
Sql commands
DOCX
Complex queries in sql
PDF
[Golang] 以 Mobile App 工程師視角,帶你進入 Golang 的世界 (Introduction of GoLang)
PPT
Working with Databases and MySQL
PPT
Java web services
Sq lite database
asp-net.pptx
ADO .Net
MYSQL.ppt
Asp.net.
Box Model
Access introduction
Web Engineering
Web Engineering
Memahami instalasi sistem operasi server
Architecture of .net framework
Windows form application_in_vb(vb.net --3 year)
Request dispatching in servlet
Lecture 01 introduction to database
Sql commands
Complex queries in sql
[Golang] 以 Mobile App 工程師視角,帶你進入 Golang 的世界 (Introduction of GoLang)
Working with Databases and MySQL
Java web services
Ad

Similar to Web tier-framework-mvc (20)

PPTX
Engineering the Java Web Application (MVC)
PPT
J2 ee archi
PPTX
Mcv design patterns
PDF
IRJET- MVC Framework: A Modern Web Application Development Approach and Working
PPT
MVC
PPT
J2ee connector architecture
PPTX
L10 Web Programming
PPTX
L17 Presentation Layer Design
PPT
Design patterns
PDF
A study of mvc – a software design pattern for web application development
PDF
IRJET- A Study Focused on Web Application Development using MVC Design Pa...
PDF
Java Web Programming [6/9] : MVC
PPTX
Web apps architecture
PDF
L13 Presentation Layer Design
PDF
Struts notes
PDF
Struts natraj - satya
PDF
Struts natraj - satya
PDF
PPT
Apachecon 2002 Struts
PDF
Design & Development of Web Applications using SpringMVC
Engineering the Java Web Application (MVC)
J2 ee archi
Mcv design patterns
IRJET- MVC Framework: A Modern Web Application Development Approach and Working
MVC
J2ee connector architecture
L10 Web Programming
L17 Presentation Layer Design
Design patterns
A study of mvc – a software design pattern for web application development
IRJET- A Study Focused on Web Application Development using MVC Design Pa...
Java Web Programming [6/9] : MVC
Web apps architecture
L13 Presentation Layer Design
Struts notes
Struts natraj - satya
Struts natraj - satya
Apachecon 2002 Struts
Design & Development of Web Applications using SpringMVC
Ad

More from KashfUlHuda1 (6)

PPTX
Object Oriented Programming-Concepts.pptx
PPTX
UML Diagrams | Usecase-diagram-notations.pptx
PPTX
Types of Software Requirements | software engineering.pptx
PPTX
chap-1 : Vulnerabilities in Information Systems
PPT
Error_Detection_and_correction.ppt
PPTX
Building blocks of object oriented technology
Object Oriented Programming-Concepts.pptx
UML Diagrams | Usecase-diagram-notations.pptx
Types of Software Requirements | software engineering.pptx
chap-1 : Vulnerabilities in Information Systems
Error_Detection_and_correction.ppt
Building blocks of object oriented technology

Recently uploaded (20)

PDF
Reach Out and Touch Someone: Haptics and Empathic Computing
PPTX
PA Analog/Digital System: The Backbone of Modern Surveillance and Communication
PDF
GamePlan Trading System Review: Professional Trader's Honest Take
PPTX
Spectroscopy.pptx food analysis technology
PDF
Modernizing your data center with Dell and AMD
PPT
“AI and Expert System Decision Support & Business Intelligence Systems”
PDF
Advanced Soft Computing BINUS July 2025.pdf
PPTX
Effective Security Operations Center (SOC) A Modern, Strategic, and Threat-In...
PPTX
Understanding_Digital_Forensics_Presentation.pptx
PDF
How UI/UX Design Impacts User Retention in Mobile Apps.pdf
PPTX
20250228 LYD VKU AI Blended-Learning.pptx
PDF
madgavkar20181017ppt McKinsey Presentation.pdf
PDF
Network Security Unit 5.pdf for BCA BBA.
PPTX
Big Data Technologies - Introduction.pptx
PDF
Per capita expenditure prediction using model stacking based on satellite ima...
PDF
Dropbox Q2 2025 Financial Results & Investor Presentation
PDF
NewMind AI Weekly Chronicles - August'25 Week I
PDF
Sensors and Actuators in IoT Systems using pdf
PDF
KodekX | Application Modernization Development
PDF
Chapter 3 Spatial Domain Image Processing.pdf
Reach Out and Touch Someone: Haptics and Empathic Computing
PA Analog/Digital System: The Backbone of Modern Surveillance and Communication
GamePlan Trading System Review: Professional Trader's Honest Take
Spectroscopy.pptx food analysis technology
Modernizing your data center with Dell and AMD
“AI and Expert System Decision Support & Business Intelligence Systems”
Advanced Soft Computing BINUS July 2025.pdf
Effective Security Operations Center (SOC) A Modern, Strategic, and Threat-In...
Understanding_Digital_Forensics_Presentation.pptx
How UI/UX Design Impacts User Retention in Mobile Apps.pdf
20250228 LYD VKU AI Blended-Learning.pptx
madgavkar20181017ppt McKinsey Presentation.pdf
Network Security Unit 5.pdf for BCA BBA.
Big Data Technologies - Introduction.pptx
Per capita expenditure prediction using model stacking based on satellite ima...
Dropbox Q2 2025 Financial Results & Investor Presentation
NewMind AI Weekly Chronicles - August'25 Week I
Sensors and Actuators in IoT Systems using pdf
KodekX | Application Modernization Development
Chapter 3 Spatial Domain Image Processing.pdf

Web tier-framework-mvc

  • 1. Web-Tier DESIGNING ENTERPRISE APPLICATIONS WITH J2EE CHAP: #4 BY:KASHF-UL-HUDA
  • 2. J2EE Platform oLayered set of system services oTop layer of a “stack” of services that support an application. oThe highest-level division is between functions that are specific to a particular application and those that occur in all Web applications. oShare a common set of basic requirements
  • 3. Web-Tier Application Structure Sits on top of the J2EE platform Providing common application functionality such as ◦ Dispatching requests ◦ Invoking model methods ◦ Selecting and Assembling views Framework classes and interfaces are structural (Load bearing elements, underpinnings) ◦ Application developers extend, use, or implement framework classes and interfaces to perform application-specific functions.
  • 4. Web-Tier Application Framework Design Model-View-Controller (“MVC”) is architectural design pattern for interactive applications. Three separate modules: ◦ one for the application model with its data representation and business logic ◦ the second for views that provide data presentation and user input ◦ the third for a controller to dispatch requests and control flow.
  • 5. Web-Tier Application Framework Design MVC separates design concerns (data persistence and behavior, presentation, and control) ◦ decrease code duplication ◦ centralize control ◦ making the application more easily modifiable
  • 6. Web-Tier Application Framework Design Web tier does four basic things in a specific order
  • 7. Web-Tier Application Framework Design An enterprise application’s Web tier commonly has the following requirements: ◦ serving current and future client types. ◦ Web-tier controller must be maintainable and extensible ◦ Maintain application’s complexity, scalability, and software quality ◦ Choose appropriate technology for generating dynamic content
  • 8. 2.1 Structuring the Web Tier Web-Tier discusses 2 Models. ◦ Model 1 ◦ Model 2 Model 1: No controller servlet (hyperlinks, request parameters) Model 2: servlet manages client communication and business logic execution ◦ easier to maintain and extend ◦ Provides a single point of control MVC application framework implement a Model 2 application.
  • 9. Web-Tier MVC Controller Design Use servlets as controllers for processing requests and selecting views. Front controller is responsible to receive request from client and dispatch it to application model. Centralizes an application’s request processing and view selection in a single component. Selects and formats the next client view.
  • 10. Controller Tasks Identify the operations to perform.(Get, Post, URL mapping suffix and prefix) Invoke model Method(if-else, Abstract Action) Controlling Dynamic screen flow: ◦ The succession of views that a Web application user sees is called screen flow Serve multiple client types.
  • 12. Support Multiple Client Types Separate controller for each client type Protocol router determine type of client from HTTP “user header”
  • 13. Web-Tier MVC View Design Display data produced by the MVC model. ◦ Templating A template is a presentation compone- nt that composes separate sub-views into a page with a specific layout
  • 14. Web-Tier MVC Model Design An MVC application model both represents business data and implements business logic.
  • 15. Web Application Frameworks J2EE BluePrints Web Application Framework (“WAF”) This framework offers: ◦ Front Controller servlet ◦ Abstract action class ◦ Templating service ◦ Several generic custom tags ◦ Internationalization support ◦ Suitable for small, non-critical applications ◦ Learning purposes
  • 16. Web Application Frameworks Apache Struts ◦ Under development ◦ open-source ◦ highly configurable ◦ Large (and growing) feature list ◦ Include a Front Controller ◦ Action classes and mappings ◦ Utility classes for XML ◦ Automatic population of server-side JavaBeans ◦ Web forms with validation ◦ Internationalization support.
  • 17. Web Application Frameworks JavaServer Faces ◦ a Java specification for building component-based user interfaces for web applications and was formalized as a standard through the Java Community Process being part of the Java Platform, Enterprise Edition. ◦ Only for presenting user interface ◦ Support internationalization ◦ Validation ◦ multiple client types, and accessibility ◦ Standardization of the architecture and API will allow tool interoperation and the development of portable, reusable Web-tier GUI component libraries.
  • 18. Benefits of MVC Decouples presentation and logic into separate components Separates developer roles Provides a central point of control Facilitates unit testing and maintenance Can be purchased instead of built Provides a rich set of features Encourages the development and use of standardized components Provides stability Has community support