Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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


Please Help Members By Posting Answers For Below Questions

State the significance of public, private, protected class?

1154


What is instance example?

1006


What happens when you invoke a thread’s interrupt method while it is sleeping or waiting?

1020


How do you convert bytes to character in java?

1049


What is user defined exception in Java?

1129


What is jvm? Why is java called the platform independent programming language?

1076


What do you understand by access specifiers in Java?

1051


What is lazy programming?

1088


Why is stringbuffer not immutable?

1130


Describe the term diamond problem.

1087


When would you use a static class?

1027


What does opcode mean?

1167


How to check if a list is sorted in java?

1085


Difference between collection, collection and collections in java?

1054


What causes memory leak in java?

985