Custom Tag Extensions

Many times, you need a Web designer to design your Java Server Pages. The designer might be an expert with HTML but might not know anything about Java. The <jsp:useBean>, <jsp:setProperty>, and <jsp:getProperty> tags allow you to make parts of your application accessible through tags, but you can't invoke bean methods without using either the <% or <%= tags. You can also provide some additional flexibility with the <jsp:include> and <jsp:forward> tags, but these tags are often overkill. You need a way to allow a Web designer to perform a specific operation without knowing any Java.

JSP Tag Extensions let you create new tags that a Web designer can insert directly into a Java Server Page. Through Tag Extensions, you can define ...

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.