waht is the main diference b/w servelts and JSP ?

Answer Posted / surendra

Jsp is nothing but a servlet
By using jsp we can seperate presentation logic from
bussinesslogic
The report that generate to the enduser must be placed in
jsppage
All the database operations must be placed in a javabean
so that we can easily modify the application if required
To simplify the development of the application jsp is used
rather than servlets.

Is This Answer Correct ?    3 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are the differences between forward() method and sendredirect() methods?

536


What are the difference between RMI and Servlets?

1037


How servlet is created?

530


Can we get PrintWriter and ServletOutputStream both in a servlet?

646


Is it good idea to create servlet constructor?

730






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

640


Elucidate servlet attributes and its scope?

560


What are the steps that are involved in using the httpservlet class?

561


What are the important functions of filters?

584


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

544


How can an existing session be invalidated?

649


What are the advantages of cookies?

618


Define the lifecycle for executing a jsp page.

582


What are life cycle methods of a servlet?

579


What is the difference between the getrequestdispatcher(string path) method of javax.servlet.servletrequest interface and javax.servlet.servletcontext interface?

549