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

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 ?

Answer Posted / madan

yes, servlets is used for purely for Controller.i think do u know MVC layer( Model View Control),control for Servlet,View for Jsp,Model for business logic..

based on the technology we used, the model will be changed
for example, if u use jsf,ejb
jsf is view and ejb is for model(business)
in struts, jsp is view, beans for model

Different persons are approaching different ways..
but are not used for business logic because we have these many technologies which maintain the B.logic

ok

Is This Answer Correct ?    1 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Why is init() method is used in servlets?

961


Explain in brief the directory structure of a web application?

1055


What's the difference between servlets and applets?

993


what do you understand by url rewriting?

903


Why is servlet used?

1124


How would you create deadlock on your servlet?

1108


Who is responsible to create the object of servlet?

1156


What is the difference between the getrequestdispatcher(string path) method of javax.servlet.servletrequest interface and javax.servlet.servletcontext interface?

990


What do you mean by web applications? Explain web application directory arrangement?

919


Explain is servlet mapping?

962


What are different Authentication options available in Servlets.

1012


Can a jsp be called using a servlet?

1078


Why do we use sendredirect() method?

934


Define context initialization parameters.

986


What are the steps involved in placing a servlet within a package?

1033