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 types of servlets? Explain
Why doesn’t a servlet include main()? How does it work?
What is the functionality of actionservlet and requestprocessor?
What is the GenericServlet class?
What is the process for chaining servlet?
What do you mean by session tracking and also explain its techniques?
When servlet object is created?
How to generate the server side programming and the advantages of it over the other languages?
What is called servlet mapping?
Explain the servlet filter.
What is the difference between portlet and servlet?
Why is Servlet so popular?
What are the different session tracking techniques?
What is the difference between servlet and jsp?
Define the lifecycle for executing a jsp page.