Struts Framework
Struts Framework
Struts Framework
Contents
• J2EE
Java’s enterprise application specification
• MVC
The Model View Controller design pattern
• Struts
The framework based on MVC
J2EE
The Specification
Introduction
Distributed Components
• For developing business components
Cont…
Java Beans,
Session DAO,
Client HTML, Beans, Entity
JSP, Message Beans,
Servlet Driven Hibernate
External
Beans
Resources
Business Integration
Presentation
Logic
Advantages
Design Pattern
Introduction
Model
•Encapsulates application
state
•Responds to state
queries
Change •Exposes application
notification
functionality
•Notifies views of changes State
State change
query
View
•Renders the models User requests Controller
•Requests updates from •Defined application
models behavior
•Sends user request to •Maps user actions to
controller View Selection model
•Allows controller to •Select view for response
select view •One for each functionality
Model Tier
Model II
• Model, View, Controller
JSP
Client View + Controller
Java Bean DB
Model
Model II
Servlet
Controller
JSP
View
Model II
The Framework
Contents
• What is Struts?
• Why Struts?
• Struts architecture
What is Struts?
Forward struts-
config.xml
• ActionServlet
• RequestProcessor
• Action
• ActionMapping
Thank You
Zubair Shaikh
imzubair@gmail.com
Presentation Version 1.0