Relationship of JavaServer Pages (JSP) and Servlets
- JSP complement Servlets, not replace them.
- Container automatically translates JSP into Servlets and compiles them
- JSP eliminates redundant and error-prone parts of coding a Servlet
- Deployment is simplified
- Always used with HTTP
- JSP best for producing text-based responses to clients
- Servlets still best for sending raw bytes