struts comes under which layer of three tire architecture
in real time projects plz i need explaination?
Answer Posted / 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 |
Post New Answer View All Answers
Why use spring, if you are already using struts?
What is role of actionservlet?
Is there a particularly good ide to use with struts?
How exceptions are handled in struts application?
Define struts?
What are the Core classes of Struts Framework?
Explain how can we upload files in struts2 application?
What is struts and why it is used?
What are the components of struts?
Give the details of xml files used in validator framework?
What is the role of action class?
What is the difference between Jakarta Struts and Apache Struts? Which one is better to use?
What does execandwait interceptor?
How many servlet controllers are used in a Struts Application?
Which class of struts is responsible to converts data types from string and vice versa?