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

Difference between java beans & servlets?

0 Answers  


Which exception is thrown if servlet is not initialized properly?

1 Answers  


What is difference between get and post method?

0 Answers  


Difference between jakarta tomcat and apache Tomcat?

4 Answers   IBM,


Explain the differences between jsp and servlet.

0 Answers  






what is session tracking?what are types of session tracking ?and when to cookies,when to use sessionmanagement,whent use url rewriting technique,plz explain briefly?

6 Answers   Satyam, TCS,


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

4 Answers   Verizon,


Which java framework is most popular?

0 Answers  


Whats the advantages using servlets over using CGI?

0 Answers  


What do you mean by session tracking?

0 Answers  


How to get the path of servlet in the server?

0 Answers  


How variables can be accessed across the sessions?

3 Answers  


Categories