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

Why is Servlet so popular?

1074


why we should override only no-agrs init() method.

1134


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

1303


What is the difference between servlet and filter?

949


What is api in servlet?

1024


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

1106


Explain jsessionid?

1043


How will you pass values from HTML page to the servlet?

1053


How do you create a cookie using servlet?

1174


What are the phases of a servlet life cycle?

1120


Is servlet a server side scripting language?

1144


How do I support both get and post from the same servlet?

1212


When should you prefer to use doget() over dopost()?

1158


What do you mean by web applications?

1207


What is meant by a servlet?

1104