my dog learned polymorphism*
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 Android Security Essentials Live Lessons this week in the Android 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: 60785

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]
Don't get me started about those stupid light bulbs.
subject: Why servlet in WebApplication
Similar Threads
servlet is used as controller
how to write javascript in servlet?
why to use JSP?
Reason for business logic in servlets only
Why servlet in WebApplication