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

why business logic written using servlets not in jsp. Jsp
used for presentation purpose. serlvet used for coding
business logic and controller logic. Reason for using
servlets in business logic.

Answer Posted / nishant

Actually the main reason behind this when the servlet is
used for both presentation & business logic, the tight
coupling between presentation & business logic creates the
problem to the reusablity, because sometime change in
business logic tends to change in presentation logic. Apart
from that the tags & HTML like enviroment makes the webpage
more dynamic.

Now if we are using jsp page for business logic then
scriptlet will be more inside the JSP page which leads to
heavy maintaince cost. The business techies call it as
MODEL1 Architecture.

The seperate declaration of servlet for business unit will
avoid all above.Say MODEL2 Architecture.

Is This Answer Correct ?    3 Yes 3 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How to get the server information in a servlet?

1152


How httpservlet is different from the genericservlet?

1111


What is session tracking?

1190


How will two or three servlets interact or communicate with each other?

1439


Tell us something about servletconfig interface.

982


What is servlet attributes and their scope?

1044


If my browser does not support cookie, and my server sends a cookie instance what will happen?

1084


What is servlet interface?

1206


Why doesn’t a servlet include main()? How does it work?

1138


What are the different methods involved in the process of session management in servlets?

1253


Explain the architechure of a servlet?

1103


What are the new features added to servlet 2.5?

1078


Explain the custom jsp tags and the beans.

1052


Why do we need a constructor in a servlet if we use the init method?

1032


What are the ways to handle multi-threading in servlets?

1070