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

How do you get the ip address of the client in servlet?

551


How to get the current httpsession object?

649


What do you mean by default initialization in java servlet?

604


What's the architecture of a servlet package?

556


What is string tokenizer?

628






What is a generic servlet?

518


What’s the difference between forward() and sendredirect() methods?

572


What is the difference in between the httpservlet and generic servlet?

603


How to make sure a servlet is loaded at the application startup?

553


what is servlet chaining?

623


Tell the new features added in servletrequest interface i.e. Servlet 2.4

573


Explain the different ways for servlet authentication?

532


What are the phases of the servlet life cycle?

605


What's the servlet interface?

596


Explain the jar and war files in servlet?

555