Chapter 9. JSP Standard Tag Library (JSTL)
Topics in This Chapter
- Installing JSP Standard Tag Library (JSTL)
out
TagforEach
andforTokens
Tagsif
Tagchoose
,when
, andotherwise
Tagsset
andremove
Tagsimport
Tagurl
andparam
Tagsredirect
Tagcatch
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 the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.