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 Frieds, I am new to servlet why to use servlet in
webapplication. what i know is " use servlet as a
controller in mvc and to implemnent business logic . is it
correct ? One more thing reason for implementing business
logic with servlets , why not jsp.

Answer Posted / syed

Servlet is a server side technology,for developing
serverside application(web applications).

In ModelI we use Servlet and Jsp's only.jsp used for
Presentation logic and Servlet used for Business logic & as
Controller.

Why because- 1.for communating with DataBase
2.for container(server)recognise java code.

Is This Answer Correct ?    4 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are some disadvantages of storing session state in cookies?

969


Tell the new features added in servletrequest interface i.e. Servlet 2.4

1117


What’s the difference between forward() and sendredirect() methods?

957


Explains the differences between context.getrequestdispatcher() and request.getrequestdispatcher()?

968


What is the purpose of requestdispatcher interface?

1002


Why are servlets used?

986


What is Servlet API used for connecting database?

1047


What do you mean by request dispatcher in servlet?

1072


How can you start a jta transaction from a servlet deployed on jboss?

1103


What is the procedure of invoking different servlet in a different application?

961


What are different ways for servlet authentication?

1045


What is the disadvantage of cookies?

949


Which is the methods of generated servlet?

1161


How can we upload the file to the server using servlet?

1002


What do you mean by servlet?

1104