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 / ratna dinakar

Servlet is server side Java application, which accepts,
processes and sends Http requests. We use a servlet to bind
Http Request and Http Response to business logic, using
various callback methods provided by HttpServlet class.

Is This Answer Correct ?    9 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are the type of protocols used in httpservlet?

796


What is MIME Type?

872


Difference between doget and dopost?

908


What are different methods of session management in servlets?

1008


What is a web container and what is its responsibility?

732


What is cookie? Why is cookie used?

801


How is the get () method different from the post() method?

733


What is the use of java servlet api?

784


Explain request dispatcher and its methods.

777


What are the jobs performed by servlets?

774


What must be implemented by all servlets?

799


Who is responsible for writing a constructor?

1015


What is difference between the HTTP Servlet and Generic Servlet? Explain about their methods and parameters?

824


In the servlets, we are having a web page that is invoking servlets ,username and password? which is checks in database? Suppose the second page also if we want to verify

776


What is servlet in simple terms?

783