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 get PrintWriter and ServletOutputStream both in a servlet?
What is the disadvantage of cookies?
Where do you define dispatcherservlet?
Explain servlet events?
Whether thread can be used in servlets?
What is the difference between Difference between doGet() and doPost()?
How do we call one servlet from another servlet?
Why do we use sendredirect() method?
What do you mean by cgi?
What is servlet container. how it works?
What do you mean by filter in servlet?
Explain web application directory arrangement?
what is the different between a servlet and a cgi? Why do you go for servlet rather than cgi?
hi actully i hav form columns with origin and destination names .as like as i need to create one more column with name amount. my requirement is when i select origin and destination columns automatically i need to get amount from database.how can i. please tel me with relative code
Describe the phases of servlet lifecycle?