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

Answer Posted / babu

ya u can write your java logic's Jsp or u can use Jsp action
tags to implement the business logic. But if u do like this
your source code may be viewed and used by the others, for
restricting or preventing your source code we are using mvc
architecture like in struts so that's why we don't want to
write java code in Jsp.

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Who is founder of java?

532


What is lambda in java?

517


What is linked hashset and its features?

552


What is style and indentation?

554


What is a final class ?

604






How many types of design patterns are there?

530


How thread scheduler schedule the task?

584


What two classes are used to read data only?

640


Is int primitive data type?

507


What are the advantages of assembly language?

501


Differentiate between array list and vector in java.

638


What is the difference between hashmap and hashtable in java?

557


Why do we need wrapper classes?

578


Say any two properties in beans?

636


Define Multiprogramming and Multiprocessing in java.

581