I would like to create a custom tag that captures its body content before
it is evaluated. Then the tag handler manipulates it in some way and prints
out the result. Also, the body content should eventually be evaluated.

For example:
<a:displayCode>
   <b:someCustomTag attr1="someValue" />
</a:displayCode>

I would like to capture the unevaluated custom tag,<b:someCustomTag
attr1="someValue" />, and print it to the web page, replacing special
characters with their ascii equivalent, and also do whatever functionality
the inner custom tag is supposed to do.

I tried overriding the doInitBody() method thinking that the body content
has been set but just not evaluated but the body content comes up empty. I
tried
BodyContent body = getBodyContent();
String orig = body.getString();

Any ideas or thoughts would be appreciated.

Thanks

===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST".

Some relevant archives, FAQs and Forums on JSPs can be found at:

 http://java.sun.com/products/jsp
 http://archives.java.sun.com/jsp-interest.html
 http://forums.java.sun.com
 http://www.jspinsider.com

Reply via email to