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
Explain jsessionid?
If a servlet is not properly initialized, what exception may be thrown?
What is difference between PrintWriter and ServletOutputStream?
Is it good idea to create servlet constructor?
Define the lifecycle for executing a jsp page.
What are session variable in servlets?
Explain the architechure of a servlet?
What is a servlet engine?
What is the difference between the include() and forward() methods?
If some new data has entered the database, explain how can a servlet refresh automatically?
What if we pass negative value in load-on-startup?
What is the life-cycle of servlets?
What is the difference between the getrequestdispatcher(string path) method of javax.servlet.servletrequest interface and javax.servlet.servletcontext interface?
What is meant by Servlet? What are the parameters of service method?
What is the use of httpservletrequestwrapper?