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

Answer Posted / vaibhav

The major difference is that JSP files are dynamically
compiled at the time of request whereas the servlets had to
be compiled before the server is started. Evrytime the file
is modified, it is to be compiled manually and the server
needs to be restarted. This does not happen in JSp where
files are automatically compiled at the time of request and
the server need not be restarted.

Is This Answer Correct ?    17 Yes 3 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the use of httpservletrequestwrapper and httpservletresponsewrapper?

549


Difference between forward() method and sendredirect() method ?

592


What is servlet used for?

702


How do I use cookies to store session state on the client?

538


How can the referrer and the target urls be used in servlet?

540






request parameter how to find whether a parameter exists in the request object?

583


how the HTML data stored in web server?

1957


Why doesn’t a servlet include main()?

567


What is the life cycle of a servlet?

793


Explain the war file?

612


What is the advantage of Servlets when compared with other server side technologies?

1866


What are the objects involved when a servlet receives a call from client?

553


Which interface should be implemented by all servlets?

704


How do you invoke a Servlet? What is the difference between doPost method and doGet method?

651


What is cookie in servlet?

601