1/3
Looks like no tags are added yet.
Name | Mastery | Learn | Test | Matching | Spaced |
|---|
No study sessions yet.
JSP Benefits
Content and display logic are separated
Simplify web application development with JSP, JavaBeans and custom tags
Supports software reuse through the use of components (JavaBeans, Custom tags)
Automatic deployment
Easier to author web pages
Platform-independent
Servlets vs JSP
JSP
Code is compiled into servlet
very easy to author
Java-like code in HTML
Servlet
HTML code in Java
Not easy to author
Why JSP over Servlets
Makes it easier to write HTML and read and maintain the HTML
Encourages you to separate the code that creates the content from the code that presents it
It is a pain to use println() to generate HTML pages in servlets
JSP standard actions
useBean
forward
include
getProperty
setProperty