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

Explains the differences between context.getrequestdispatcher() and request.getrequestdispatcher()?

548


What is the web server used for running the Servlets?

579


What are different ways for servlet authentication?

563


What is the directory structure of a war file?

711


How do you load an image in a Servlet?

658






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

534


Is servlet a framework?

541


Which are the different ways you can communicate between servlets?

524


Which application server is best for java?

556


Why is a constructor needed in a servlet even if we use the init method?

604


A client sends requests to two different web components. Both of the components access the session. Will they end up using the same session object or different session ?

610


What do you mean by session tracking and also explain its techniques?

498


Why is Servlet so popular?

613


What are advantages of servlets over cgi?

627


What is servletconfig?

546