Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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


Please Help Members By Posting Answers For Below Questions

What is the purpose of @after annotation?

1090


What is the purpose of dispatcher result type?

1000


What is the use of execAndWait interceptor?

1074


What is the use of interceptor?

1021


What are the differences between Struts1 and Struts2 or how Struts2 is better than Struts1?

1060


Why do we need struts?

966


What is apache struts vulnerability?

984


What is controller in struts2?

1224


Does apache struts run on windows?

1035


how to connect from struts to database through hibernet and where u can modify the class

2603


Explain how to work with error tags?

1061


What is the purpose of @element annotation annotation?

1141


Who makes the struts?

998


What is the default location of result pages and how can we change it?

1064


What types of validations are available in xml based validation in struts2?

1103