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

How httpservlet is different from the genericservlet?

829


What is a servlet context object?

906


How can you push data from an Applet to a Servlet?

864


What are the mechanisms used by a servlet container for maintaining session information?

799


When servlet is loaded?

826


What are all the protocols supported by httpservlet?

918


Is it good idea to create servlet constructor?

1019


How will two or three servlets interact or communicate with each other?

1181


What is url encoding and url decoding

874


What is the use of httpservletrequestwrapper and httpservletresponsewrapper?

797


What are the types of Session Tracking ?

875


why we should override only no-agrs init() method.

913


what is servlet chaining?

852


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

871


What is the workflow of a servlet?

939