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
What are passing parameters?
Can you tell me range of byte?
Why is it called a string?
What language is java written?
What is space character in java?
What is java used for on a computer?
What is the difference in between cpp and java? Can u explain in detail?
Convert a BST into a DLL and DLL to BST in place.
What is method in research paper?
Why wait(),notify(),notifyAll() methods defined in Object class althought we are using in only threads.
Can we sort list in java?
What is map and hashmap in java?
What is consumer in java?
Give few examples of final classes defined in Java API?
What do you mean by an object in java?