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 / 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 |
Post New Answer View All Answers
What are the uses of servlet and what is servlet chaining?
Why the concept of single thread model interface is used?
What is a servlet-to-servlet communcation?
What must be implemented by all servlets?
What is the GenericServlet class?
Difference between java beans & servlets?
Why do we need a constructor in a servlet if we use the init method?
How to handle exceptions thrown by application with another servlet?
What’s the difference between sendredirect and forward methods
How to get the current httpsession object?
Explain the architechure of a servlet?
When is the servlet instance created in the life cycle of servlet? What is the importance of configuring a servlet?
What do you mean by cgi and what are its drawbacks?
What is the difference between the http servlet and generic servlet?
What are the benefits of using servlet over cgi?