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

What do you mean by httpservlet and how it is different from the genericservlet?

538


What is cgi?

596


Difference between doget and dopost?

682


How is a servlet implemented in code?

567


Write all the phases defined in servlet life cycle?

589






What is MIME Type?

663


Who is responsible for writing a constructor?

779


What is the inter-servlet communication?

702


Differentiate between get and post?

684


Why HttpServlet class is declared abstract?

646


What do you mean by servlet?

719


Which application server is best for java?

560


What is a deployment descriptor?

599


What mechanisms are used by a Servlet Container to maintain session information?

666


Why jsp is better than servlet?

532