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



struts comes under which layer of three tire architecture in real time projects plz i need explain..

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 which layer of three tire architecture in real time projects plz i need explain..

Answer / prasanth s

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

struts comes under which layer of three tire architecture in real time projects plz i need explain..

Answer / pradeep kumar yadav

Struts comes under web layer.

Is This Answer Correct ?    16 Yes 9 No

struts comes under which layer of three tire architecture in real time projects plz i need explain..

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

struts comes under which layer of three tire architecture in real time projects plz i need explain..

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

struts comes under which layer of three tire architecture in real time projects plz i need explain..

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

struts comes under which layer of three tire architecture in real time projects plz i need explain..

Answer / srinath

struts comes under controller

Is This Answer Correct ?    1 Yes 0 No

struts comes under which layer of three tire architecture in real time projects plz i need explain..

Answer / sekhar babu

Yes,
Anjani kumar jha is correct
Structs comes under Controller Layer

Is This Answer Correct ?    2 Yes 2 No

struts comes under which layer of three tire architecture in real time projects plz i need explain..

Answer / siva

Struts Comes under controller layer.

Is This Answer Correct ?    0 Yes 0 No

struts comes under which layer of three tire architecture in real time projects plz i need explain..

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

Post New Answer

More Struts Interview Questions

What does execandwait interceptor?

0 Answers  


What is difference between struts1 and struts2?

0 Answers  


What steps are required to for an application migration from Struts1 to Struts2?

0 Answers  


What are the steps required for setting up validator framework in struts?

0 Answers  


How many servlet controllers are used in a Struts Application?

0 Answers  






What is struts framework in java?

0 Answers  


why do we typecast ActionForm into our plain java bean class in Action class? What is the reason?

4 Answers  


what is ACID test for fresh engineers??what is the pattern??

0 Answers  


is it necessary to write struts-confing.xml ,what tags are important in that xml file?

2 Answers  


Which configuration files are used in struts?

0 Answers  


What is the use of struts?

0 Answers  


Can we handle exceptions in Struts programmatically?

0 Answers  


Categories