Chapter 11. Invoking Java Code with JSP Scripting Elements

Topics in This Chapter

  • Static vs. dynamic text

  • Dynamic code and good JSP design

  • The importance of packages for JSP helper/utility classes

  • JSP expressions

  • JSP scriptlets

  • JSP declarations

  • Servlet code resulting from JSP scripting elements

  • Scriptlets and conditional text

  • Predefined variables

  • 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.

Core Servlets and JavaServer Pages (Vol. 1.Core Technologies)
Core Servlets and Javaserver Pages: Core Technologies, Vol. 1 (2nd Edition)
ISBN: 0130092290
EAN: 2147483647
Year: 2002
Pages: 194

Similar book on Amazon © 2008-2017.
If you may any questions please contact us: