I also added an extra test case to show the use of both MyBeanTagLibrary
which inherits from BeanTagLibrary as well as a test case using MyTagLibrary
which inherits from TagLibrary which just reuses the BeanTag and
BeanPropertyTag. i.e. to show that you can reuse this mechanism without
necessarily deriving from BeanTagLibrary.

hmm. Looking at MyTagLibrary now, I must say that I would always prefer it the way I did it, i.e. with a registered tag and without using BeanTagLibrary at all (neither inheriting nor importing classes).

Also, I dont really see the point in doing it the way you do. Apart from the rather complex code in MyTagLibrary (>20 lines vs <10 lines before), it does not provide additional functionality beyond what can be directly used (in the script) from BeanTagLibrary. In fact that is what the test case does - the nested elements are handled through BeanTagLibrary.

The CustomerTag class is now obsolete, you could delete it.

regards,
Christian


--
To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to