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 |
What are the two types of validations supported by validator framework?
what happen if the private constructor is written in a claass
What is the purpose of @key?
Does struts include its own unit tests?
What’s the utilization of resource bundle properties file in struts validation structure?
What's mvc pattern ?
What is action chaining ?
What are the core components of a struct2 based application?
What is MVC?
how to connect from struts to database through hibernet and where u can modify the class
we have 7 jsp pages .At last page we have a submit button when we click it it will store all jsps data which we provide will store into database. when we starting providing data in jsp pages when we are at 3rd jsp at that time sessions timeout where the data will be store which we r provide in last two jsps?
Which components are available using actioncontext map?