tirumalesh struts
TRANSCRIPT
![Page 1: Tirumalesh Struts](https://reader036.vdocument.in/reader036/viewer/2022082511/544f86deb1af9fce758b46ac/html5/thumbnails/1.jpg)
Struts
Tirumalesh Reddy
![Page 2: Tirumalesh Struts](https://reader036.vdocument.in/reader036/viewer/2022082511/544f86deb1af9fce758b46ac/html5/thumbnails/2.jpg)
Struts
• An open source development framework for building web applications
• Based on Model-View-Controller (MVC) design paradigm
• Implementation of JSP Model 2 Architecture
• Created by Craig McClanahan and donated to Apache Software Foundation (ASF) in 2000
![Page 3: Tirumalesh Struts](https://reader036.vdocument.in/reader036/viewer/2022082511/544f86deb1af9fce758b46ac/html5/thumbnails/3.jpg)
Selecting a UI Framework
• No framework (use straight JSP)
• Build our own framework
• Webwork
• Expresso
• Barracuda
• Cocoon
• SiteMesh
• Freemarker, Velocity andWebMacro
• XML/XSLT
• ???
![Page 4: Tirumalesh Struts](https://reader036.vdocument.in/reader036/viewer/2022082511/544f86deb1af9fce758b46ac/html5/thumbnails/4.jpg)
Why Consider Struts ?
• Feature-rich
• Free to develop & deploy
• Many supported third-party tools
• Flexible & Extendable
• J2EE Technologies
• Expert Developers and Committers
• Large User Community
• Performance
![Page 5: Tirumalesh Struts](https://reader036.vdocument.in/reader036/viewer/2022082511/544f86deb1af9fce758b46ac/html5/thumbnails/5.jpg)
Struts Framework Features
• Model 2 -MVC Implementation
• Internationalization(I18N) Support
• Rich JSP Tag Libraries
• Based on JSP, Servlet, XML, and Java
• Supports Java’s Write Once, Run Anywhere Philosophy
• Supports different model implementations (JavaBeans, EJB, etc.)
• Supports different presentation implementations( JSP, XML/XSLT, etc)
![Page 6: Tirumalesh Struts](https://reader036.vdocument.in/reader036/viewer/2022082511/544f86deb1af9fce758b46ac/html5/thumbnails/6.jpg)
Struts Dependencies
• Java 1.2 or newer
• Servlet 2.2 and JSP 1.1 container
• XML parser compliant with JAXP 1.1 or newer (e.g. Xerces)
• Jakarta Commons packages
• JDBC 2.0 optional package
![Page 7: Tirumalesh Struts](https://reader036.vdocument.in/reader036/viewer/2022082511/544f86deb1af9fce758b46ac/html5/thumbnails/7.jpg)
Struts Architecture
![Page 8: Tirumalesh Struts](https://reader036.vdocument.in/reader036/viewer/2022082511/544f86deb1af9fce758b46ac/html5/thumbnails/8.jpg)
Struts Framework
• Model The model components provides a model of the business logic
behind a Struts program.
• View The view components are responsible for presenting information
to the users and accepting the input from them.
• Controller Whenever a user request for something, then the request is
handled by the Struts Action Servlet. When the ActionServlet receives the request, it intercepts the URL and based on the Struts Configuration files, it gives the handling of the request to the Action class. Action class is a part of the controller and is responsible for communicating with the model layer.