What is the difference between Java Servlet & JSP?
Answer / 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 |
How to connect jsp and java file?
What is expression language injection?
What is jsp in html?
What are different types of comments in jsp?
How do you import the packages in the JSP?
14 Answers HCL, Hyderabad Central University,
How can we handle the exceptions in jsp?
What is the full form of jsp?
Which tag is used to execute java source code in jsp?
Mention the scope values for <jsp.usebean> tag.
How can you include the results of another page?
can i extend jsp page like other java classes ?
What is request getcontextpath ()?