What is Struts Frame Work Architecture(With Diagram) ?

Answers were Sorted based on User's Feedback



What is Struts Frame Work Architecture(With Diagram) ?..

Answer / farookh

Model Components
Model components provide a "model" of the business logic or
data behind a Struts program. For example, in a Struts
application that manages customer information, it may be
appropriate to have a "Customer" Model component that
provides program access to information about customers.

It's very common for Model components to provide interfaces
to databases or back-end systems. For example, if a Struts
application needs to access employee information that is
kept in an enterprise HR information system, it might be
appropriate to design an "Employee" Model component that
acts as an interface between the Struts application and the
HR information system.

Model components are generally standard Java classes. There
is no specifically required format for a Model component,
so it may be possible to reuse Java code written for other
projects.

View Components
View components are those pieces of an application that
present information to users and accept input. In Struts
applications, these correspond to Web pages.

View components are used to display the information
provided by Model components. For example, the "Customer"
Model component discussed above would need a View component
to display its information. Usually, there will one or more
View components for each Web page in a Struts application.

View components are generally built using JavaServer Page
(JSP) files. Struts provides a large number of "JSP Custom
Tags" (sometimes referred to as Struts Tags) which extend
the normal capabilities of JSP and simplify the development
of View components.

Controller Components
Controller components coordinate activities in the
application. This may mean taking data from the user and
updating a database through a Model component, or it may
mean detecting an error condition with a back-end system
and directing the user through special error processing.
Controller components accept data from the users, decide
which Model components need to be updated, and then decide
which View component needs to be called to display the
results.

One of the major contributions of Controller components is
that they allow the developer to remove much of the error
handling logic from the JSP pages in their application.
(After all, if errors in processing occur, the Controller
component forwards to an error-processing View component,
not the primary results View component.) This can
significantly simplify the logic in the pages and make them
easier to develop and maintain.

Controller components in Struts are Java classes and must
be built using specific rules. They are usually referred to
as "Action classes."

I unable to draw here........hope this will help you

Is This Answer Correct ?    17 Yes 8 No

What is Struts Frame Work Architecture(With Diagram) ?..

Answer / abcd

struts is struts.

Is This Answer Correct ?    14 Yes 27 No

Post New Answer

More Struts Interview Questions

Why do we need mapdispatchtoprops?

0 Answers  


if u r using eclipse tool how can u debbaging u r application? plz explain with sample code

3 Answers   IBM, Tech Mahindra,


What is struts 2 framework in java?

0 Answers  


How does struts work?

0 Answers  


What is the purpose of form-be tag in struct-config.xml?

0 Answers  






What is struts framework?

0 Answers  


What is the use of interceptor?

0 Answers  


what is the struts internal code?

1 Answers   Wipro,


What is jakarta struts framework?

0 Answers  


What is the purpose of @typeconversion annotation annotation?

0 Answers  


How many struts config file can be created in struts?

0 Answers  


How is the mvc design pattern used in struts framework?

0 Answers  


Categories