• Share
  • Email
  • Embed
  • Like
  • Save
  • Private Content
Struts2
 

Struts2

on

  • 2,064 views

 

Statistics

Views

Total Views
2,064
Views on SlideShare
2,063
Embed Views
1

Actions

Likes
1
Downloads
75
Comments
0

1 Embed 1

http://www.slideshare.net 1

Accessibility

Categories

Upload Details

Uploaded via as Microsoft PowerPoint

Usage Rights

© All Rights Reserved

Report content

Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
  • Full Name Full Name Comment goes here.
    Are you sure you want to
    Your message goes here
    Processing…
Post Comment
Edit your comment

    Struts2 Struts2 Presentation Transcript

    • Struts 2
    • Contents
      • What is Struts?
      • Why to use framework?
      • Struts 2 Overview
      • Struts 2 MVC components
      • Request Lifecycle in Struts 2
      • Struts 2 Architecture
      • Sample Application
      • Why we should use Struts 2?
      • Struts 1 vs Struts 2
      • What you need to start using Struts2.
    • What is Struts?
      • Open Source java framework for creating web applications.
      • Action Based Framework
      • Create web application using MVC 2 architecture
      • Apache Struts offer two major version
          • Struts 1.x
          • Struts 2.0
      • Struts 2 = WebWork + Struts
    • Why use framework?
      • Do we need framework?
      • No and Yes.
      • No.
      • In small applications where you don’t want the overhead of learning new things.
      • But
      • Yes
      • We have to use framework in real world application because:-
        • Automation of common tasks
        • Concentrate on higher level concerns.
    • Struts 2
      • Complete new framework based on webwork framework.
      • Struts 2 implements MVC 2 design pattern.
    • Struts 2 MVC Components
      • Controller:-
      • Filter Dispatcher:-
        • First component that start processing that is why this type of MVC is called front controller MVC
        • Looks at the request and apply the appropriate action.
        • Struts framework handles all of the controller work.
        • Its configured in web.xml
      • Interceptors:-
        • Can execute code before and after an Action is executed.
        • They can be configured per action basis.
        • Can be used for data validation, file upload, double submit guards.
    • Struts 2 MVC Components contd.
      • Model:-
        • Implemented by action class
        • For model you can use any data access technologies like JDBC,EJB,Hibernate
      • View
        • Its your result part. It can be JSP,JSTL,JSF etc.
        • Presentation part of the MVC
    • Request Lifecycle in Struts 2
      • User Sends Request
      • Filter Dispatcher determines the appropriate action
      • Interceptors are applied
      • Execution of action
      • Output Rendering
      • Return of Request
      • Display of result to user.
    • Struts 2 Architecture
    • Why we should use Struts 2?
      • Simplified Design
      • Simplified Action
      • Simplified Testability
      • Better tag features
      • Annotation introduced
      • Easy plug-in
      • AJAX Support
    • Struts 1 vs Struts 2
      • How Struts 1 and Struts 2 differ from each other?
        • Configuration
        • Action Class
        • Dependency injection.
        • Servlet Dependency
        • Validation
        • Threading model
        • Testability
        • Expression Language
    • What you need to start using Struts 2?
      • Java 5.0
      • Tomcat 5.x(Servlet api 2.4 and jsp api 2.0)
      • Thank You All.