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 / sonu
servlet is a java class.while jsp is a file.Internally when
we compile servlet will be generated from jsp file.jsp
complier will be the default one with all application
servers.Manually developed servlets perform more faster
than the servlets generated by the jsps.Jsp are used for the
display purpose only.In servlets we include the presentation
and business logic both
| Is This Answer Correct ? | 4 Yes | 6 No |
Post New Answer View All Answers
What do you mean by chaining in servlet?
What is http servlet?
What is a deployment descriptor?
Why is it that we can't give relative URL's when using ServletContext.getRequestDispatcher() when we can use the same while calling ServletRequest.getRequestDispatcher()?
How we can get ip address of client in servlet?
How will two or three servlets interact or communicate with each other?
What do you mean by mime type?
Can we fetch the attributes related to a servlet on a different servlet?
Explain the lifecycle of a servlet?
Why HttpServlet class is declared abstract?
What are the ways to handle multi-threading in servlets?
Explain web container.
What is ServletConfig object?
What are some disadvantages of storing session state in cookies?
How the JSP file will be executed on the Server side?