what is the difference between Servlet and JSP?Advantage of
JSP over Servelt?Any concept present in JSP which we cant
implement in Servlet?

Answer Posted / nisha

Java Server Pages (JSP) is a technology that lets you mix
regular, static HTML with dynamically-generated HTML.
Servlets, make you generate the entire page via your
program, even though most of it is always the same. JSP lets
you create the two parts separately. Java Server Pages (JSP)
is a Sun Microsystems specification for combining Java with
HTML to provide dynamic content for Web pages. When you
create dynamic content, JSPs are more convenient to write
than HTTP servlets because they allow you to embed Java code
directly into your HTML pages, in contrast with HTTP
servlets, in which you embed HTML inside Java code. JSP is
part of the Java 2 Enterprise Edition (J2EE).

Is This Answer Correct ?    51 Yes 27 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How many objects of a servlet is created?

796


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

578


What is the use of httpservletrequestwrapper and httpservletresponsewrapper?

545


What is the use of welcome-file-list?

576


What are the phases of the servlet life cycle?

614






What is the difference between using getSession(true) and getSession(false) methods?

574


What's the servlet interface?

598


Explain the servlet context.

604


Describe in brief RequestDespatcher?

596


What's the difference between authentication and authorization?

554


Whether we can get deadlock situation in servlets?

578


What are the types of an http request?

585


What is meant by session? Tell me something about httpsession class?

605


What is servlet looping or chaining?

660


What is meant by Servlet? What are the parameters of service method?

600