Your SlideShare is downloading. ×
Struts
Upcoming SlideShare
Loading in...5
×

Thanks for flagging this SlideShare!

Oops! An error has occurred.

×

Saving this for later?

Get the SlideShare app to save on your phone or tablet. Read anywhere, anytime - even offline.

Text the download link to your phone

Standard text messaging rates apply

Struts

5,345
views

Published on

Published in: Technology, Education

1 Comment
4 Likes
Statistics
Notes
  • why not to download anymore so ?
       Reply 
    Are you sure you want to  Yes  No
    Your message goes here
No Downloads
Views
Total Views
5,345
On Slideshare
0
From Embeds
0
Number of Embeds
1
Actions
Shares
0
Downloads
198
Comments
1
Likes
4
Embeds 0
No embeds

Report content
Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
No notes for slide

Transcript

  • 1. Web Application Development Using Struts 1.2.9 Ranjan Kumar Project Engineer SE Division CDAC Mumbai
  • 2. Agenda
    • 1. Introduction
    • 2. Struts Controller Components
    • 3. Struts Model Components
    • 4. Struts View Components
    • 5. Configuring Struts Application
    • 6. Sample Application
    • 7. Validation Framework
    • 8. Tiles Framework
    • 9. Summary
  • 3. 1. Introduction
    • What is struts?
      • Open source , by ASF , framework , based on MVC Architecture.
      • Struts 1.2.9
      • Struts 1.3.5 beta
      • Struts 2 (WebWork 2)
    • The struts framework is used within the web tier.
    • How to proceed with struts framework?
      • Where to get it from?
      • Package Structure?
      • Using struts-blank ?
  • 4. The Struts framework is used within web tier.
  • 5. How to proceed with struts framework?
      • Where to get it from?
      • http://struts.apache.org/download.cgi
      • struts-1.2.9-bin.zip [ PGP ] [ MD5 ]
      • Package Structure?
      • Using struts-blank?
  • 6. MVC in Struts Framework
  • 7. 2. Struts Controller Components
    • The Struts ActionServlet
      • It extends HttpServlet .
        • process () method
      • Version 1.1 before and after .
      • RequestProcessor
        • process () method
      • Configuring ActionServlet and RequestProcessor
    • Struts Action Class
      • Execute() Method in some Action class
      • Action tag in struts-config.xml
  • 8.
    • Struts ActionForward class
    • Struts ActionMapping class
      • findForward() Method
    • Business Logic and the Action class
    • Using the Prebuilt Struts Actions
      • org.apache.struts.actions.ForwardAction class
      • org.apache.struts.actions.IncludeAction class
      • org.apache.struts.actions.DispatchAction class
  • 9.
    • The “M” in MVC
    • Types of Models
      • The conceptual model
        • The ER diagrams
      • The design model
        • The class diagrams
    • What Is a Business Object?
      • A business object(BO) is simply a software abstraction of a real-world entity.
    • Requirements for Business Objects
      • Consists of state and behavior
      • Represents a person, place, thing, or concept from the business domain
      • Is reusable.
    • Types of business objects
      • Entity business object
      • Process business object
      • Event business object
    3. Struts Model Components
  • 10. 4. Struts View Components
    • HTML documents
    • JSP custom tag libraries
    • JavaScript and stylesheet
    • Multimedia files
      • Images (.gif, .jpg, etc.)
      • Audio (.wav, .mp3, etc.)
      • Video (.avi, .mpg, etc.)
    • Message resource bundles
      • Internationalization
      • Reduce maintenance time and redundancy throughout an application.
    • ActionForm classes
  • 11. Using the Struts ActionForm
      • Also called form bean.
      • getter , setter , reset() and validate()
      • methods.
      • Declaring ActionForm in the Struts Configuration File
      • ActionForm can have two different levels of
      • scope: request and session.
      • Using an ActionForm in an Action.
      • Lifecycle of ActionForm :
      • DynaActionForm
  • 12. The lifecycle of an ActionForm
  • 13. 5. Configuring Struts Application
    • Configuring the web.xml File for Struts
      • Mapping the Struts ActionServlet
      • Specifying Multiple Application Module
      • Declare the Initialization Parameters
      • Configuring Tag Libraries
      • Setting Up the Welcome File List
      • Configuring Error Handling in web.xml
  • 14.
    • The Struts Configuration File
      • Configuring Multiple Application Module
        • struts-config.xml ,
        • org.apache.struts.config Package
          • ApplicationConfig Class
      • struts-config.xml
        • The data-sources element
        • The form-beans element
        • The global-exceptions element
        • The global-forwards element
        • The action-mappings element
        • The controller element
        • The message-resources element
        • The plug-in element
  • 15. 6. Sample Application Leave Management Module of Human Resource Management System
  • 16. 7. Validation Framework
    • What is validation?
    • Using the validate() method of ActionForm
      • Demerits-
        • redundancy of code.
        • maintenance problem (recompilation).
    • Using Validation Framework .
      • The validation framework allows us to move all the validation logic completely outside the ActionForm and declaratively configure it for an application through external xml files .
    • Installing and configuring the Validator .
      • Required packages:
        • commons-validator.jar
        • jakarta-oro.jar
    • Configuring the Validation Rules
      • validation-rules.xml
      • validation.xml
  • 17. 8. Tiles Framework
    • What is a Template?
        • A template is a JSP page that uses a JSP custom tag library to describe the layout of a page. The template acts as a definition for what the pages of an application will look like, without specifying the content. The content is inserted into the template page at runtime. One or more page may use the same template.
    • What is a Tile?
        • A tile is an area or region within a web page.
    • Using a layout Tile
        • Classic layout
        • Columns layout
        • Center layout
        • Menu layout
        • Tabs layout
        • Vertical box layout
  • 18. 9. Summary
  • 19. Thanks…