D
diego.manilla
Hi. I would like to know how to invoke a tag handler from another
custom one. For example, if I have:
<myTagsneTag>
bodyContent
</myTagsneTag>
I would like to put some code on oneTag class to make the previous code
behave as if it were:
<myTagsneTag>
<otherTags:anotherTag>
bodyContent
</otherTags:anotherTag>
</myTagsneTag>
I have to enclose the contents of my layout JSPs within some pretty
complicated cache tags (its attributes are dynamic and pretty lengthy),
and I would like to make a custom tag to encapsulate the (ugly) cache
tag, so instead of:
<cacheTags:cache (lots of attributes here)>
bodyContent
</cacheTags:cache>
I would have
<myTags:tinyTag>
bodyContent
</myTags:tinyTag>
The first thing I thought of was a tag file, but those don't allow
scripting on their body (which I need), and I haven't found a way to
modify the JspFragment object (using SimpleTag API) nor the BodyContent
one (using classic tag handlers).
Thanks in advance.
custom one. For example, if I have:
<myTagsneTag>
bodyContent
</myTagsneTag>
I would like to put some code on oneTag class to make the previous code
behave as if it were:
<myTagsneTag>
<otherTags:anotherTag>
bodyContent
</otherTags:anotherTag>
</myTagsneTag>
I have to enclose the contents of my layout JSPs within some pretty
complicated cache tags (its attributes are dynamic and pretty lengthy),
and I would like to make a custom tag to encapsulate the (ugly) cache
tag, so instead of:
<cacheTags:cache (lots of attributes here)>
bodyContent
</cacheTags:cache>
I would have
<myTags:tinyTag>
bodyContent
</myTags:tinyTag>
The first thing I thought of was a tag file, but those don't allow
scripting on their body (which I need), and I haven't found a way to
modify the JspFragment object (using SimpleTag API) nor the BodyContent
one (using classic tag handlers).
Thanks in advance.