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 ?

Answers were Sorted based on User's Feedback



Hi friends, am newbie to servlet. My interviewer asked why used servlet in your application. i use..

Answer / 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

Hi friends, am newbie to servlet. My interviewer asked why used servlet in your application. i use..

Answer / jitendra

yes correct.And the answer should also include that because
servlet has some methods that are inherited from super class
like...init,destroy and many more that are used to handle
the request.

Is This Answer Correct ?    4 Yes 0 No

Hi friends, am newbie to servlet. My interviewer asked why used servlet in your application. i use..

Answer / madan

yes, servlets is used for purely for Controller.i think do u know MVC layer( Model View Control),control for Servlet,View for Jsp,Model for business logic..

based on the technology we used, the model will be changed
for example, if u use jsf,ejb
jsf is view and ejb is for model(business)
in struts, jsp is view, beans for model

Different persons are approaching different ways..
but are not used for business logic because we have these many technologies which maintain the B.logic

ok

Is This Answer Correct ?    1 Yes 0 No

Hi friends, am newbie to servlet. My interviewer asked why used servlet in your application. i use..

Answer / mallikarjuna

using servlets we can develop the web applications . what
ever the client sending the request and giving the response
and writing controler logiv and businesslogic

Is This Answer Correct ?    0 Yes 1 No

Hi friends, am newbie to servlet. My interviewer asked why used servlet in your application. i use..

Answer / victor

no

Is This Answer Correct ?    0 Yes 1 No

Post New Answer

More Servlets Interview Questions

Hello, My project requirement is like I need to create a web page using MVC pattern. I hava a bean class, jsp page, servlet, service and dao. My jsp has two fields. One is dropdown list. The option values has to get populated from the database table. The other one is a text box and its value has to come from database table. As of now I have defined the fields in bean class, got the values from database using arraylists in dao class and I called this from service class. Can anyone please tell me the workflow of how the servlet will get this arraylist and populate the arraylist values as dropdown options in jsp page? Also I would like to know the role of bean class in MVC pattern? Thanks in advance!

0 Answers  


I have a requirement Here we have a ResultSet object that will contain 50 records i need to print those recors in to a webpage(i.e; view according to MVC architectures that mybe servlet or jsp) . Here i need to print the records 10 per page that is 1 to 10 in page one and 11 to 20 in page two like remaining will be appeared in other pages we need to display those page numbers whenever we click on that page number we will go to that page and display 10 records like we will display 5 pages it is like this << 1 2 3 4 5 next >>

0 Answers   ProKarma,


What is a server side include (ssi)

0 Answers  


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

0 Answers  


What is URL Rewriting ?

2 Answers  






Define the servlet mapping.

0 Answers  


What is a java servlet?

0 Answers  


Why servlet is faster than jsp?

0 Answers  


How to pass a requrest object of one servlet as a request object to another servlet?

4 Answers   Verizon,


What is the protocol used by Server & Client?

2 Answers  


Can we get PrintWriter and ServletOutputStream both in a servlet?

0 Answers  


Why are servlets used?

0 Answers  


Categories