tirumalesh struts

8
Struts Tirumalesh Reddy

Upload: ahelmy

Post on 28-Oct-2014

106 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: Tirumalesh Struts

Struts

Tirumalesh Reddy

Page 2: Tirumalesh Struts

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

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

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

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

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

Struts Architecture

Page 8: Tirumalesh Struts

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.