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

If servlet receives multiple requests, how many objects will it create?

1439


What is servlet in tomcat?

1102


What are the key methods that are involved in processing of http servlets?

1162


What are the different methods involved in generic servlet?

1151


What is the use of welcome-file-list?

1074


explain the advantages of servlet life cycle?

1035


What is meant by Servlet? What are the parameters of service method?

1101


what do you understand by url rewriting?

1007


What are the important functions of filters?

1200


Explain the methods of request dispatcher in servlet?

1099


What are the new features added to servlet 2.5?

1153


Whether thread can be used in servlets?

1262


Which http method is said to be non-idempotent and idempotent?

1093


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

1343


Why is it that we can't give relative URL's when using ServletContext.getRequestDispatcher() when we can use the same while calling ServletRequest.getRequestDispatcher()?

1146