We can write any Java Logics in our JSP. Then why we are
using servlets(Controller Layer) to interact with the DAO ?

Answer Posted / kaushik

JSPs are translated into Servlets which renders data from
the DAO/Back-End classes on the client page. The job of
Servlet/Servelet Container is to facilitate/give developer
an option to manipulate what servlet container does as well
as use the request/response/session etcetera objects.

Is This Answer Correct ?    3 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Compare overloading and overriding?

557


Can a static method be final?

547


Difference between this() and super() ?

569


What are java annotations?

637


What is the purpose of the system class in java programming?

536






What are 3 data types?

537


How do you escape a string?

501


Is a boolean 1 bit?

608


What is the console in java?

669


Describe the various concepts related to object oriented programming (oop).

578


Why map is used in java?

569


What is the purpose of an interface?

548


Is string an object?

643


What is parsing in grammar?

548


What is the purpose of encapsulation?

534