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
Can we override destroy method in servlet?
What is meant by a servlet?
What is the difference between get and post methods?
How to read request headers from servlets?
What is the purpose of requestdispatcher interface?
Why filter is used in servlet?
What is servlet collaboration?
Is servlet thread safe?
When is the servlet instance created in the life cycle of servlet? What is the importance of configuring a servlet?
Explain the role of dispatcherservlet and contextloaderlistener.
Should I override the service() method?
How does Cookies work in Servlets?
How do I use cookies to store session state on the client?
What is servlet in web technology?
What do you mean by cgi?