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


Please Help Members By Posting Answers For Below Questions

What’s the difference between forward() and sendredirect() methods?

572


What is MIME Type?

661


Write a simple servlet program to print the contents of html.

543


What is the difference in between the httpservlet and generic servlet?

599


What do you mean by cgi and what are its drawbacks?

524






Explain request dispatcher and its methods.

581


Where do you define dispatcherservlet?

550


What's the advantages using servlets than using cgi?

556


What is the difference between get and post methods?

599


How do you configure a centralized error handler in servlets?

531


Can filter be used as request or response?

540


How do I support both get and post from the same servlet?

693


What is the difference between genericservlet and httpservlet

583


What is the difference between CGI and Servlet?

584


How can we upload the file to the server using servlet?

539