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

Why is sizeof not a function?

744


What is this keyword used for?

858


How do you define a variable?

706


What are different types of classloaders?

761


What is the difference between conversation & casting?

764


How do you remove duplicates in java?

726


Why we override equals() method?

753


Does importing a package imports its sub-packages as well in java?

732


Write a program to reverse a number in java?

770


What is java objectoutputstream?

716


What are the four integer types supported by java?

762


What is final keyword in java?

746


What is a private class in java?

701


What are the three best choices for a development environment?

835


What are the 4 types of characters?

741