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 / 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

explain autoboxing in java?

992


What is the purpose of using break in each case of switch statement?

1023


What are the methods to rectify ambiguities in the interfaces in JAVA?

1080


What is outofmemoryerror in java?

1020


What do you mean by data type?

1019


How concurrent hashmap works?

1181


What is the use of arraylist class in java?

1068


What is passed by reference and pass by value ?

1028


What is incompatible types in java?

1028


What is called module?

968


What is unsigned char?

1063


Explain about fail safe iterators in java?

1017


What is the advantage of OOP in java?

1140


Can we access the non-final local variable, inside the local inner class?

1015


Is java still relevant?

972