Download presentation
Presentation is loading. Please wait.
Published byAdrian Sutton Modified over 9 years ago
1
http://www.java9s.com -SRINIVAS REDDY
2
www.java9s.com Struts 2 Tutorial Introduction to Struts 2
3
Importance of Frameworks Automates all tedious tasks of application. Introduces an elegant architectural Solution. Uses the design patterns commonly agreed and that are standard in the industry. Gives lot of features that are commonly needed by most of the projects. www.java9s.com
4
MVC Architecture www.java9s.com Controller Model View
5
Design Patterns Front Controller pattern Command Pattern Composite Pattern Decorator Pattern www.java9s.com Front Controller
6
STRUTS 2 BASIC ARCHITECTURE www.java9s.com Controller FilterDispatcher Model Action (Domain Object/Command obj) View RESULT (JSP, AJAX)
7
Struts 2 Architecture (with Interceptors) www.java9s.com Params Validation Conversion Model-driven ActionResult ValueStackrequestsession App context ActionContext(ThreadLocal) Interceptors Incoming RequestResponse Invoke result OGNL
8
Struts 1.x Action www.java9s.com Controller ActionServlet FormBean Action
9
Struts 2 Action www.java9s.com FrontController FilterDispatcher Action Form Fields PARAMS
10
www.java9s.com
11
Advantages of Struts 2 An Advanced framework with lot of features. Based on the MVC Architecture. Simple configuration Interceptors to reduce the cross cutting functionality OGNL Pluggable with different Result types like Ajax, JSP, Free Marker, Velocity etc., www.java9s.com
12
Visit www.java9s.com for more videos www.java9s.com ©All rights reserved by java9s.com.
Similar presentations
© 2024 SlidePlayer.com. Inc.
All rights reserved.