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
Which jsp methods can be overridden?
How can we handle the exceptions in jsp?
What is server side programming language?
What are the jsp elements?
Differentiate between pagecontext.include and jsp:include?
What are the two kinds of comments in jsp and what's the difference between them ?
How do you delete the session data?
What is the difference between java servlet and jsp?
What is the difference between a scrollbar and a scrollpane in jsp?
How do I view jsp files in my browser?
How do I view a jsp file?
What do you mean by custom tag in jsp?
What is a tag file?
Give the use of session object.
What is the difference between include directive and include action?