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

Answer Posted / amit kmar

Servlets are pure java programs.here we can't use HTML.
But in JSP we use HTML,so we can use and modify the data
very easily.
Servlets are faster than JSP.bcoz while running JSP
programs it will be converted into Servlets and then
executed,so it takes more time.

Is This Answer Correct ?    1 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is preinitialization of a servlet?

582


What are the important functions of filters?

596


What is servlet invoker?

602


Write a hello world program using servlets.

590


What is the use of servletconfig interface?

554






How many objects of a servlet is created?

788


What methodology can be followed to store more number of objects in a remote server?

1815


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

554


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

588


What are the key methods that are involved in processing of http servlets?

624


What are different ways for authentication of servlet?

525


How is the get () method different from the post() method?

535


If a servlet is not properly initialized, what exception may be thrown?

625


what do you understand by url rewriting?

546


Can we refresh servlet in client and server side automatically?

591