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

What is a void in java?

770


Which class contains a method: cloneable or object?

742


What is starvation?

908


Explain the hierarchy of java exception classes?

788


When we serialize an object does the serialization mechanism saves its references too?

705


What is the largest data type in java?

703


What are keywords in programming?

754


Why is the main method declared static?

820


Is null keyword in java?

709


How do you start a new line in java?

711


Is constructor inherited?

724


Can a variable be local and static at the same time?

748


What is string length in java?

678


What are the five major types of reference sources?

718


How can you add and remove nodes in jtree?

790