Evaluating body content of a custom tag
Is it possible to evaluate a custom tag that is inside another tag with <body-content>tagdependent<body-content>?
In "Professional JSP Tag Libraries" by Simon Brown on pages 168-174 (the end of Chapter 6) he discusses a custom tag that can display code to the browser without it being interpreted by the JSP container. The trick is to use tagdependent body content.
My question is: Is it possible to *also* interpret that code? For example, the following in the JSP
<a:displayCode>
<b:currentDate />
</a:displayCode>
would produce in the browser:
<b:currentDate />
May 13, 2005
So that you could both echo the code used for the inner custom tag and evaluate it also.
Thanks
|