Why JSPs?
- HTML in servlets is cumbersome
- Separation of duties
Advantages of using JSPs
- Powerful - they are servlets
- Efficient - they are compiled into bytecode
- Portable - they are standardized, they work in
multiple containers
- Convenient - they use the JavaBeans component architecture
- Flexible - can use Custom Tags
- Easy - Uses HTML/XML and Java
Disadvantages of using JSPs
- Separating business logic from presentation logic is easier
said than done
- Without a framework, many of the problems of web development
still exist
- Application flow can get lost in the presentation layer
- Business logic in the presentation layer
- Java in the HTML is still difficult for non-programmers
- Learning JSPs can feel like a different language, more to learn
- Debugging (without a good IDE) can be a little more difficult
However, if done correctly, all the problems with JSPs can be taken
care of, and they are preferred to using servlets for presentation.


