JSP Overview
Overview of JSP Technology – Chapter 10
Concepts
- Understanding the need for JSP
- Evaluating the benefits of JSP
- Avoiding JSP misconceptions
- Static vs. dynamic text
- Dynamic code and good JSP design
- JSP Syntax
What is a JSP page?
- A JSP page is an HTML page with embedded Java code.
- Here is a very simple example:
- Here is the generated java class:
The Need for JSP
- It is hard to write and maintain the HTML
- You cannot use standard HTML tools
- The HTML is inaccessible to non-Java developers
Benefits of JSP
- It is easier to write and maintain the HTML.
- You can use standard Web-site development tools.
- You can divide up your development team.
Misconceptions About JSP
- Forgetting JSP is Server-Side Technology
- Confusing Translation Time with Request Time
- Thinking JSP Alone Is Sufficient
- Thinking Servlets Alone Are Sufficient