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
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 |
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 |
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 |
What is cookies in servlet with example?
Which method the Servlet container call to create the instance of the servlet?
16 Answers emc2, JK Technosoft,
What is the main purpose of java servlets?
Does servlet have main method?
What are the two important api's in for servlets?
How to pass session values from one servlet container to another servlet container? or how can we get session values of one container in another container?
How values can be passed from HTML page to servlet?
What are the parameters of the service method ?
What are the various ways of session supervision in servlets?
What are Servlets?
How to debug a servlet?
What is cgi and what are its drawbacks?