Q&A

Q1: What are three features of custom tags that I can use to extend my Web pages?
A1: Custom tags can access objects (such as HTTP request parameters and the page context) of the JSP page. They can cooperate and share information with each other and can be used in a hierarchical manner to implement programmable concepts, such as iteration.
Q2:What is the name of the Java package that supports the development of custom tags, and what are the two classes that are normally extended by custom tags?
A2: The custom tag package is javax.servlet.jsp.tagext, and the two super classes used for most tags are TagSupport and BodyTagSupport.
Q3:What are the five methods I can override when extending BodyTagSupport, including parameters and return type? In ...

Get Sams Teach Yourself J2EE™ in 21 Days 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.