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
How many objects of a servlet is created?
What are the steps that are involved in using the httpservlet class?
What is the use of httpservletrequestwrapper and httpservletresponsewrapper?
What is the use of welcome-file-list?
What are the phases of the servlet life cycle?
What is the difference between using getSession(true) and getSession(false) methods?
What's the servlet interface?
Explain the servlet context.
Describe in brief RequestDespatcher?
What's the difference between authentication and authorization?
Whether we can get deadlock situation in servlets?
What are the types of an http request?
What is meant by session? Tell me something about httpsession class?
What is servlet looping or chaining?
What is meant by Servlet? What are the parameters of service method?