This week's book giveaway is in the Mac OS forum. We're giving away four copies of a choice of "Take Control of Upgrading to Yosemite" or "Take Control of Automating Your Mac" and have Joe Kissell on-line! See this thread for details.
I'm just working my through the HFSJ in chapter 9 it talks about a custom tag handler to go along with the TLD that is defined, here's a snippet from each
My question is, there is only one attribute associated with this tag, but if there was another attribute called say test, would you have to add another String called test and a method called setTest inside the TagHandler?
If you want to add another attribute to the tag you must do the following:
1) Inside the TagHandler: Add the private String variable
2) Inside the TagHandler: Write the setter method for the attribute
3) Update the TLD to have another attribute element
4) Update the JSP code to use the new attribute and test it out
Joined: Dec 05, 2008
Thanks Mike, pretty much what I thought it would be
subject: Question about custom tag handler and TLD