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
What is the Scope of Static Variable?
In how many ways we can create threads in java?
How do you declare an array in java?
What is comparable and comparator interface? List their differences
how to write a server program and sending the mails to the server using smtp protocol please help me
How does multithreading take place on a computer with a single cpu?
What are the object and class classes used for?
What is ellipsis in java?
What is java full form?
Can subclass overriding method declare an exception if parent class method doesn't throw an exception?
What is meant by call by reference?
Can a class be private?
What is meant by tab pans?
How to reverse a string in java?
Write a program to calculate factorial in java?