We can write any Java Logics in our JSP. Then why we are
using servlets(Controller Layer) to interact with the DAO ?
Answer Posted / madhuri
ya u can write your java logics in scriptlet part of jsp or
u can use jsp action tags to implement the business logic.
but its not the good practice to implement the business
logic in jsp's.mainly the use of jsps is to seperate the
presentation logic and business.. so its better to use
jsps only for presentation purpose..u can write business
logic in action classes or in the servlets..
Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
Can we have multiple classes in single file ?
Explain reverse a linked list recursive java solution?
What is a pointer and does java support pointers?
Is passing by reference faster?
Do we need to manually write Copy Constructor?
When wait(), notify(), notifyall() methods are called does it releases the lock or holds the acquired lock?
What does int [] mean in java?
What are the advantages of encapsulation in java?
What is a file pointer?
Will minecraft java be discontinued?
What are data types in programming?
Which java version is latest?
What are abstract methods in java?
What do you mean by append?
Can we define a package statement after the import statement in java?