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 refresh servlet in client and server side automatically?
What is the difference between using getSession(true) and getSession(false) methods?
What is servlet in simple terms?
Explain the concept of ssi ?
Explain the difference between jsp and servlet?
What are the exceptions thrown by servlets? Why?
What are the life-cycle methods for a servlet?
What is the use of servlet wrapper classes?
how to link html file to sevlet file.one name is textbox,c&c++ is cheakbox,bc&mca is radio button and one submit buttonis ok why in this programme use in servelt file
What are the jobs performed by servlets?
What is the difference between the getrequestdispatcher(string path) method of javax.servlet.servletrequest interface and javax.servlet.servletcontext interface?
What do you mean by session tracking and also explain its techniques?
How to read request headers from servlets?
Explain in brief the directory structure of a web application?
What is a generic servlet?