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 is a programming object?
What causes memory leak in java?
How to declare an arraylist in java?
What is the symbol for space?
How many bits is a 64 bit byte?
Difference between == and .equals() ?
Can we have two main methods in a java class?
What is sortedmap interface?
Explain different ways of creating a thread. Which one would you prefer and why?
Is 0 true or false?
Does java trim remove newline?
How many types of array are there?
Why for each loop is used?
How to reverse a string in java?
How do you start a new line in java?