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
What are the two important api's in for servlets?
How servlet is created?
Why is httpservlet declared abstract?
In the servlets, we are having a web page that is invoking servlets ,username and password? which is checks in database? Suppose the second page also if we want to verify
What is a servlet-to-servlet communcation?
Can you send an authentication error from a servlet?
How to get the actual path of servlet in server?
What are the different types of servlets?
What are the supporting protocol by HttpServlet ?
What is preinitialization of a servlet?
What are different ways for servlet authentication?
What is Servlets and explain the advantages of Servlet life cycle?
What are the types of Session Tracking ?
What is war file?
What is the process to implement doget and dopost methods?