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

In layman's terms, JSP is core Java embedded in HTML. Servlet has HTML embedded in core Java. You must be aware that HTML is used to define the page structure of a web page at the client side and it deals with how to present the data in a web page. The purpose of JSP introduction is to add very few lines of core Java to help display the web page at the client side and hence, populating many lines of core Java is not appreciated in JSP.

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the main purpose of java servlets?

1037


What are the phases of servlet life cycle?

1104


What are the advantages of servlets over traditional cgi?

1077


What are its drawbacks of cgi?

1100


What's the difference between servlets and applets?

1029


What do you mean by servlet?

1129


What are different methods of session management in servlets?

1257


Tell the new features added in servletrequest interface i.e. Servlet 2.4

1160


Why do we have servlet wrapper classes?

1055


Describe some assignments that are executed by servlet container?

1069


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

1138


How do you invoke a Servlet? What is the difference between doPost method and doGet method?

1123


Differentiate between the get and post method

1043


Why do we need servlet filter?

1040


What is load-on-startup in servlet?

1126