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

Its for reusability purpose.jsp should be only used for
presentation purpose and our html designer,who later design
the page is not aware of java coding will not be comfortable.
and writing all buiseness logic in servlet lets the code
reusable.and for writing buiseness logic in jsp page there
are some other way like using scriplets.so why do the job
with less profit and extra work.

Is This Answer Correct ?    11 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

When using servlets to build the HTML, you build a DOCTYPE line, why do you do that?

1027


What is the inter-servlet communication?

1131


How servlets are deployed in java?

964


What is the effective way to make sure all the servlets are accessible only when user has a valid session?

1004


What is webservlet?

950


How can you start a jta transaction from a servlet deployed on jboss?

1102


Why servlet is mostly used?

1184


What is java servlet?

1008


How many objects of a servlet is created?

1218


What are the benefits of using servlet over cgi?

980


Is dispatcher servlet a singleton?

963


Explain the architechure of a servlet?

1058


Is servlet a framework?

985


Describe in brief RequestDespatcher?

1071


What is servlet? Explain

1009