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 are important features of Servlet 3?

583


What is servlet api used for conneting database?

688


What is servlet collaboration?

648


What mechanisms are used by a Servlet Container to maintain session information?

653


What do you mean by httpservlet?

555






Write a program to show the functionality of doget and dopost method?

640


What are the two important api's in for servlets?

578


Explain the servlet filter.

533


What are the life-cycle methods for a servlet?

539


How to rectify errors in java servlet while compilation?

506


Can we refresh servlet in client and server side automatically?

583


What do you mean by url pattern in servlet?

613


Hi frnd can i any one kindly can post for me portlet,hibernate and spring example application and with flow explantion configuration using Jdeveloper.and related links ar tutorials kindly please send me .its urgent for me .thanks in advance...........else can any one send to kondaiah.goddeti@gmail.com

1729


Difference between GET and POST?

700


Explain the role of dispatcherservlet and contextloaderlistener.

588