Why Do We Use JSP Instead of Servlet in Java ?

Since JSP pages are dynamically compiled into servlets, the programmers can easily make updates to the presentation layer code.

For better performance, JSP pages can be pre-compiled.

Also JSP pages provide flexibility to combine static templates like HTMLor XML snippets.

In addition, programmers can make logic changes at the class level, without editing the JSP pages that use the class logic.



You May Interest

When is UnsupportedOperationException Thrown in Java ?

What is the Purpose of Properties File in Java ?

What are the Thread-safe Classes in Java Collections Framework ?

What are the Uses of AOP Module in Spring Framework ?

What is the Difference Between Array and ArrayList in Java ?