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 the main purpose of java servlets?

809


Should I override the service() method?

884


Name the packages that work with servlet?

767


What is the difference between context parameter and context attribute?

751


What is ServletConfig object?

853


Write a program to show the functionality of doget and dopost method?

909


What do you mean by singlethreadmodel interface?

813


What is called Scriptlet?

841


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

849


Explain the steps involved in placing a servlet within a package?

796


What is life cycle of Servlet?

823


What are different methods of session management in servlets?

1027


Are Servlets Thread Safe? How to achieve thread safety in servlets?

782


What is the type of method for sending request from http server?

821


How the JSP file will be executed on the Server side?

893