wood burning stoves 2.0*
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
JavaRanch » Java Forums » Java » Servlets
Bookmark "Why servlet in WebApplication" Watch "Why servlet in WebApplication" New topic
Author

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
Greenhorn

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..


Regards
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 61657
    
  67

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]
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Why servlet in WebApplication