Chapter 9. JSP Standard Tag Library (JSTL)

Topics in This Chapter

  • Installing JSP Standard Tag Library (JSTL)
  • out Tag
  • forEach and forTokens Tags
  • if Tag
  • choose, when, and otherwise Tags
  • set and remove Tags
  • import Tag
  • url and param Tags
  • redirect Tag
  • catch Tag

It’s easy to see why the standard JSP actions and JSP EL are usually not powerful enough when it comes to implementing a complex presentation logic. They lack basic features such as looping and storing scoped variables, and they have limited conditional logic, among many others. However, the ability to create custom tags and functions more than compensates for this drawback.

However, it would be a terrible waste of time for every developer to have to write his or her own if tags, for loop ...

Get Core Servlets and JavaServer Pages, Volume 2: Advanced Technologies, Second Edition now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.