struts comes under which layer of three tire architecture
in real time projects plz i need explaination?
Answers were Sorted based on User's Feedback
Answer / dsr
Struts is a MVC Architecture.This is three tier layer.
Layers:
-------
1.view: like as jsp page.
2.controler: controller the request and response objects.
3.model: database and service layer.
Is This Answer Correct ? | 27 Yes | 3 No |
Struts comes under view or web layer. It helps the JSPs
and/or HTMLs to club with the Action/Forms to complete the
View layer in the MVC Architecture.
Is This Answer Correct ? | 10 Yes | 1 No |
Answer / vijay
Before knowing this Answer..u should know the layers concept
There are three layers actually
1)presentation layer
2)service layer
3)Data access layer
1)presentation layer is used to design the front
end...nothing but web page what u see(using struts or jsf
or traditional servlets and jsp's)
2)service layer is actually used to write the business logic
of our application(using ejb's,spring)
3)Data access layer is used to interact with data base
(jdbc,hibernate,jpa)
so struts are used to design the front end only...based on
mvc-2 architecture
Is This Answer Correct ? | 7 Yes | 0 No |
Answer / anjani kumar jha
Ans is --------Controller
Before go through the struts you should have the great
concept of MVC.(model-view-controller).
View----The jsp page code is always is called the
views.views is called what you can see that is for example
login.jsp which contains the login id and password and some
more field....so this page is called view.
Controller:---------Controller is very important part
because all of ur request and response is handle by controller.
Explanation:
after enterning the user-name and password and
other field in ur login page you click on the submit button
so click on submit button the work of the controller is
start and that is ActionServlet and the RequestProcessor in
the case of STRUTS.
ActionServlet collect ur request and forward to request
processor and the work of request processor is to validate
the request and forward to MODEL.
MODEL---Now the role of model is starts.
WORK of the model is to connect with the database
with ur query and see if ur query is present is in database
as example when u r opening the gmail.com and after that u
enter ur username and password and wen submit it tells
either u are already register or give some error that ur
username and password doesnt match.
So the same work is done by the model also.it checks the
database of validity of ur query and then through controller
it display the message(if user is not register).
For further assitance u may call me
Anjani Kumar Jha
09623154095
CDAC PUNE
Is This Answer Correct ? | 7 Yes | 1 No |
Answer / xxx
re sekhar don't say which is correct..what is your answer
tell me otherwise just shutup...
Is This Answer Correct ? | 3 Yes | 1 No |
Yes,
Anjani kumar jha is correct
Structs comes under Controller Layer
Is This Answer Correct ? | 2 Yes | 2 No |
Answer / mukesh
struts focus on service tier . it is view and model
independent . so it is service tier ...
Is This Answer Correct ? | 9 Yes | 14 No |
how to get the last 10 elements using logic:iterate in struts with hiernate from database.
What are the benefits of Interceptors in Struts2?
Name some useful annotations introduced in Struts2?
What is the use of jsonvalidation in struts?
What are apache struts?
What is struts.devmode?
what r the disadvantages of MVC-2 Architecture?
What are interceptors in struts 2?
What are the core classes of struts framework? Explain
How to build struts application in eclipse?
Explain the necessity of empty tag?
what is the main reason for developing struts? what is advantages over Basic MVC architecture based JAVA Application?