We can write any Java Logics in our JSP. Then why we are
using servlets(Controller Layer) to interact with the DAO ?
Answer Posted / sujatha
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 ? | 11 Yes | 0 No |
Post New Answer View All Answers
How do you escape sequences in java?
Does it matter in what order catch statements for filenotfoundexception and ioexception are written?
What is the Concept of Encapsulation in OOPS
Explain importance of throws keyword in java?
Can we create object of inner class in java?
Why string is not thread safe?
What is method reference?
What is the difference between C++ and Java and your preferences?
Which container method is used to cause a container to be laid out and redisplayed in java programming?
What do you mean by a JVM?
Is integer immutable in java?
What is a parameter in java?
Why java is secure? Explain.
Can we start a thread twice in java?
What are class members by default?