Day 14. JSP Tag Libraries
In the previous two days' chapters, you have learned about J2EE Web applications written using servlets and JSPs. You have seen how servlets are most useful when complex Java programming is needed and JSPs are more appropriate to use when the generated Web page requires large amounts of HTML (or JavaScript). So far, to support complex features, you have had to write Java code in JSP in the form of scriptlets. There is another way, however. JSTL (JavaServer Pages Standard Tag Library) and custom tag libraries (TagLibs) provide a natural extension to the JSP tag syntax.
JSTL has been developed to make writing JSPs easier. It has the following advantages:
Removes the need for JSP writers to manipulate the dynamic data ...
Get Sams Teach Yourself J2EE™ in 21 Days, 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.