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 is servlet used for?

704


Define declaration.

626


What are the difference between session and cookies in servlet? Explain

572


Can servlet have a constructor ?

601


What is api in servlet?

533






Why doesn’t a servlet include main()? How does it work?

643


What is the default http method in the servlet?

772


How can you run a servlet program?

611


What is servlet mapping?

605


What is a servlet-to-servlet communcation?

658


What is called a session?

630


Servlet is pure java object or not?

729


How do we translate jsp?

584


How do you invoke a Servlet? What is the difference between doPost method and doGet method?

653


How can I send user authentication information while making URL Connection?

553