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


Please Help Members By Posting Answers For Below Questions

Can we have multiple classes in single file ?

802


Explain reverse a linked list recursive java solution?

738


What is a pointer and does java support pointers?

764


Is passing by reference faster?

743


Do we need to manually write Copy Constructor?

773


When wait(), notify(), notifyall() methods are called does it releases the lock or holds the acquired lock?

744


What does int [] mean in java?

743


What are the advantages of encapsulation in java?

728


What is a file pointer?

695


Will minecraft java be discontinued?

895


What are data types in programming?

739


Which java version is latest?

718


What are abstract methods in java?

864


What do you mean by append?

716


Can we define a package statement after the import statement in java?

806