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
Write a method to check if input string is palindrome?
Why is a singleton bad?
Can you explain inner class.
Does a function need a return?
What is abstract class? Explain
Explain the private field modifier?
How do you know if a value is nan?
What are the 4 versions of java?
What happens if we don’t define serial version uid?
What is difference between class and object in java?
What is the purpose of default constructor?
How you can force the garbage collection?
What are the features in java?
Explain what access modifiers can be used for variables?
What java is used for?