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
Who is responsible to create the object of servlet?
Which event is fired at the time of session creation and destroy?
What is servlet and how it works?
How do servlets work?
request parameter how to find whether a parameter exists in the request object?
What is servlet name in web xml?
Explain web application directory arrangement?
What do you mean by mime type?
why we should override only no-agrs init() method.
Explain servlet life cycle?
What is SingleThreadModel interface?
Is servlet a framework?
Which java framework is most popular?
What’s the difference between genericservlet and httpservlet?
What are the servlet events?