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
What is the difference between Servlets and Applets?
How httpservlet is different from the genericservlet?
What is the major difference between context parameter and context attribute?
What is setattribute in servlet?
What is session?
Describe some assignments that are executed by servlet container?
how the HTML data stored in web server?
What are the types of protocols supported by httpservlet ?
Which HTTP method is non-idempotent?
Explain the difference between a web server and a web container?
What is java servlet?
What do you mean by httpservlet?
What is a servlet?
How do I use cookies to store session state on the client?
Who is responsible for writing a constructor?