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

Answer Posted / guest

it reduces coupling so that code changes can be done easily

Is This Answer Correct ?    1 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Which collection is thread safe in java?

501


What is regex used for?

538


How do you use nextline in java?

499


Is array synchronized in java?

548


What is constructor and virtual function? Can we call a virtual function in a constructor?

672






How do I write a self declaration?

541


Can you make a constructor final?

573


What is getkey () in java?

564


Program to Find the second largest element in an array.

578


What is the difference amongst jvm spec, jvm implementation, jvm runtime ?

500


What are the advantages of java over C++?

711


What is java object name?

543


What is a dynamic array java?

505


What is array pointers ?

599


How does system arraycopy work in java?

573