Chapter 16. Extending JSP with New Tags

In this chapter

Including Other Files

Forwarding to Another Page

The <jsp:useBean> Tag

Custom Tag Extensions

A "Hello World" Tag

Packaging and Installing a Tag

Conditional Includes Using Custom Tags

Accessing Tag Attributes

Processing Body Content with a Custom Tag

Adding Scripting Variables

Troubleshooting

Up to this point, you have only seen the basic syntax and core features of Java Server Pages and servlets. Many of the examples you have seen are difficult to read because they fre quently shift between Java and HTML. In fact, one of the biggest complaints about JSP is that the pages end up looking messy and become difficult maintain. In this chapter, you will see how to organize your Java Server Pages and servlets ...

Get Special Edition Using Java™ 2 Enterprise 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.