File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Servlets and the fly likes Why servlet in WebApplication Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Elasticsearch in Action this week in the Big Data forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "Why servlet in WebApplication" Watch "Why servlet in WebApplication" New topic

Why servlet in WebApplication

Rajendra Prakash
Ranch Hand

Joined: Sep 10, 2009
Posts: 293
Hi friends, am newbie to servlet. My interviewer asked why used servlet in your application.
i used servlet for controller logic and business logic . is it correct ?
Anshul Agrawal

Joined: Jul 15, 2008
Posts: 19
Controller and Business logic ..these things say about architecture of the Servlet (MVC) main reason might be that servlets are server side components which executes under container environment and most robust reliable and secure than any other server side component or another server side languages..

Bear Bibeault
Author and ninkuma

Joined: Jan 10, 2002
Posts: 62145

Controller. Business logic belongs in a UI-agnostic business layer (part of the model).

[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
subject: Why servlet in WebApplication