Answer Posted / vengat
Both use server-side Java to dynamically generate web
pages. The source code to a JSP looks like HTML, with Java
embedded inside funny tags (*); the source code to a
servlet looks like Java, with HTML embedded in out.print
(...) statements. Both use the Servlet API to communicate
with the web server and the client. In fact, a JSP gets
compiled into a servlet, so they're almost identical in
terms of expressive power. The choice is, whether you're
more comfortable coding your pages in Java or in JSP-style
HTML
Though the both are identical, they have different roles in
the Model View Controller (MVC) architecture. View
corresponds to JSP, Controller corresponds to Servlet and
Model to BusinessLogic + Database
| Is This Answer Correct ? | 7 Yes | 0 No |
Post New Answer View All Answers
What do you mean by jsp?
What is context in web application?
A jsp page, include.jsp, has a instance variable "int a", now this page is statically included in another jsp page, index.jsp, which has a instance variable "int a" declared. What happens when the index.jsp page is requested by the client?
Explain jsp action elements or action tags?
How to find out the name of the http method using jsp el?
What does it mean when tags or attributes are said to be deprecated?
Is jsp server side scripting language?
What is the difference between a scrollbar and a scrollpane in jsp?
What is difference between java and jsp?
What is
How do I create a dynamic web project?
How can automatic creation of session be prevented in a jsp page?
Explain lifecycle methods.
What is a hidden comment in jsp?
How do I use comments within a jsp page?