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

What does serializing data mean?

1003


Explain the use of javap tool.

1184


How does multithreading take place on a computer with a single cpu in java programming?

1058


Why pass by reference is not possible in java?

1108


Explain the difference between static and dynamic binding in java?

1113


How are observer and observable used in java programming?

1078


Explain about main() method in java ?

1113


What is float in java?

1036


Difference between linkedlist and arraylist.

1116


Why do we use return statement?

1103


when you will synchronize a piece of your code? : Java thread

1068


What is the point of polymorphism java?

1069


Differentiate between a class and an object.

1069


What is the difference between the Reader/Writer class hierarchy and the InputStream/OutputStream class hierarchy?

1171


Why is sizeof not a function?

1062