Sample Program: Writing Your Custom Tag Library

See if you can build a custom tag library and modify the book shopping cart application implemented in the JSP. You will be writing a custom tag library to support displaying the price of the books using the <ctt:MoneyFormat/> tag. This tag has an attribute MoneyValue, the value of which is the price of the book. Your custom tag will convert this book price into a formatted price and put it in the JSP. Apart from this, you will also use WebLogic's custom tag library and use the <wl:cache></wl:cache> tags to display the shopping cart information. These custom tags will be used in the ShoppingCartJsp.jsp and ViewCartJsp.jsp files.

For writing the custom tag handler, the first step is to write the ...

Get Sams Teach Yourself BEA WebLogic Server 7.0™ 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.