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 called a session?

1179


If some new data has entered the database, explain how can a servlet refresh automatically?

1298


What are Servlets?

1134


Name the different ways of session tracking.

1030


how to link html file to sevlet file.one name is textbox,c&c++ is cheakbox,bc&mca is radio button and one submit buttonis ok why in this programme use in servelt file

2700


How can you push data from an Applet to a Servlet?

1105


List out difference between a JavaBean from a Servlet?

1037


A client sends requests to two different web components. Both of the components access the session. Will they end up using the same session object or different session ?

1094


How can the session in servlet can be destroyed?

1184


What’s the difference between genericservlet and httpservlet?

1121


Difference between GET and POST?

1164


What are the kinds of http requests?

1042


What do you mean by servlet?

1149


What is the difference between Difference between doGet() and doPost()?

1305


What are the features added in Servlet 2.5?

1264