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
What does serializing data mean?
Explain the use of javap tool.
How does multithreading take place on a computer with a single cpu in java programming?
Why pass by reference is not possible in java?
Explain the difference between static and dynamic binding in java?
How are observer and observable used in java programming?
Explain about main() method in java ?
What is float in java?
Difference between linkedlist and arraylist.
Why do we use return statement?
when you will synchronize a piece of your code? : Java thread
What is the point of polymorphism java?
Differentiate between a class and an object.
What is the difference between the Reader/Writer class hierarchy and the InputStream/OutputStream class hierarchy?
Why is sizeof not a function?