Topics in This Chapter
Static vs. dynamic text
Dynamic code and good JSP design
The importance of packages for JSP helper/utility classes
Servlet code resulting from JSP scripting elements
Scriptlets and conditional text
Servlets vs. JSP pages for similar tasks
This chapter discusses the “classic” approach to invoking Java code from within JSP pages. This approach works in both JSP 1 (i.e., JSP 1.2 and earlier) and JSP 2. Chapter 16 discusses the JSP expression language, which provides a concise mechanism to indirectly invoke Java code, but only in JSP 2.0 and later.
In most cases, a large percentage of your ...