Hi Frieds, I am new to servlet why to use servlet in
webapplication. what i know is " use servlet as a
controller in mvc and to implemnent business logic . is it
correct ? One more thing reason for implementing business
logic with servlets , why not jsp.
Answer Posted / syed
Servlet is a server side technology,for developing
serverside application(web applications).
In ModelI we use Servlet and Jsp's only.jsp used for
Presentation logic and Servlet used for Business logic & as
Controller.
Why because- 1.for communating with DataBase
2.for container(server)recognise java code.
| Is This Answer Correct ? | 4 Yes | 2 No |
Post New Answer View All Answers
How can a servlet be used to generate plain text instead of html?
What's the use of servletcontext?
What is the dispatcher servlet?
Explain the difference between get and post method in servlet?
What do you mean by request dispatcher in servlet?
What are sessions in servlets?
What is preinitialization of a servlet?
Explain their methods? Tell me their parameter names also have you used threads in servlet?
What is cgi?
When servlet is loaded?
What is the functionality of actionservlet and requestprocessor?
What are life cycle methods of a servlet?
What is difference between cookies and httpsession?
What is meant by cookies?
Which event is fired at the time of project deployment and undeployment?