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
Does java allow default arguments?
How do you do absolute value in java?
What is jagged array in java?
What are 3 data types?
What is stringjoiner ?
What is the default execution method in java?
What is jdbc api?
Define inheritance with reference to java.
What will be the output of round(3.7) and ceil(3.7)?
How can an object be unreferenced?
What is called module?
What is locale?
How many bits is a boolean?
Explain the concept of hashtables?
Is null keyword in java?