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
What’s the difference between forward() and sendredirect() methods?
What is MIME Type?
Write a simple servlet program to print the contents of html.
What is the difference in between the httpservlet and generic servlet?
What do you mean by cgi and what are its drawbacks?
Explain request dispatcher and its methods.
Where do you define dispatcherservlet?
What's the advantages using servlets than using cgi?
What is the difference between get and post methods?
How do you configure a centralized error handler in servlets?
Can filter be used as request or response?
How do I support both get and post from the same servlet?
What is the difference between genericservlet and httpservlet
What is the difference between CGI and Servlet?
How can we upload the file to the server using servlet?