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

What is the web server used for running the Servlets?

1061


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

1118


What's the use of servletcontext?

1192


Is tomcat a servlet container?

1108


What do you mean by scope object and what are its types?

1118


Explain their methods? Tell me their parameter names also have you used threads in servlet?

1092


What is servlet and how it works?

1040


What is session?

1121


What are the type of protocols used in httpservlet?

1137


explain the advantages of servlet life cycle?

1031


What are the mechanisms used by a servlet container for maintaining session information?

1080


How to get ip address in jsp login page and how to validate like 127.1.0.1 all should not be greater than 255

3444


Can you send an authentication error from a servlet?

1023


How can an existing session be invalidated?

1231


When a servlet accepts a call from a client, it receives two objects. What are they?

1302