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 do you mean by httpservlet and how it is different from the genericservlet?
What is cgi?
Difference between doget and dopost?
How is a servlet implemented in code?
Write all the phases defined in servlet life cycle?
What is MIME Type?
Who is responsible for writing a constructor?
What is the inter-servlet communication?
Differentiate between get and post?
Why HttpServlet class is declared abstract?
What do you mean by servlet?
Which application server is best for java?
What is a deployment descriptor?
What mechanisms are used by a Servlet Container to maintain session information?
Why jsp is better than servlet?