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

yes you are right but why we write all the business logic in
jsp ,becuse we just in a first step to follow the mvc
architectuer like in struts so thats why we don't want to
write java code in jsp
we just use jsp for a view and he servlet for the
controller for business logic
oherwise you wan o right all business in jsp so is up to you
noone sop you do this
thanks amit singh
amitsing2008@gmail.com

Is This Answer Correct ?    4 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How to set the permissions to a file in java?

998


When is finally block not called?

1102


What is subsequence of a string?

1110


What does arrays sort do in java?

1029


What do you understand by Header linked List?

1116


What is finalize() function in java?

1027


What is the use of StringTokenizer class?

1078


What is qualitative variable?

943


What are the 8 primitive data types in java?

1037


Can we create a constructor in abstract class?

996


What are the types of sockets in java?

1165


What are default methods ?

1060


What is the use of bufferedreader?

1008


What are the advantages of java inner classes?

1080


How do you use wildcards?

1070