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

List out the difference between ServletConfig and ServletContext?

998


What is the inter-servlet communication?

1139


How can you use a servlet to generate a plain text instead of html?

1090


What is the dispatcher servlet?

931


What is the effective way to make sure all the servlets are accessible only when user has a valid session?

1020


How to make sure a servlet is loaded at the application startup?

1001


What is the default http method in the servlet?

1248


Difference between GET and POST?

1102


How do you load an image in a Servlet?

1136


What is preinitialization of a servlet?

979


What is the main purpose of java servlets?

1014


What is the difference between Servlet Request and Servlet Context when calling a Request Dispatcher?

1175


What is called a session?

1130


Can you use javascript in servlets?

1031


What are the difference between RMI and Servlets?

1524