This week's book giveaway is in the Features new in Java 9 forum.
We're giving away four copies of Java 9 Revealed and have Kishori Sharan on-line!
See this thread for details.
Win a copy of Java 9 Revealed this week in the Features new in Java 9 forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

SimpleTagSupport class - Nested Tag  RSS feed

 
Srinivasan Rengan
Ranch Hand
Posts: 122
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hey Ranchers,
How would we write the code inside doTag() method, if we have a nested call inside the tag file. This is how my tag file looks:
------------------------------------------
<%@ taglib uri="MyUri" prefix="mine" %>
<mine:MyFunction color="green">
<mine:MyFunction color="red">
<mine:MyFunction color="red"/>
</mine:MyFunction>
</mine:MyFunction>
------------------------------------------

My TLD looks like the following:

<taglib...>

<tlib-version>1.2</tlib-version>
<uri>MyUri</uri>
<tag>
<description>...</description>
<name>MyFunction</name>
<tag-class>com.Addition</tag-class>
<body-content>scriptless</body-content>
<attribute>
<name>color</name>
<required>true</required>
<rtexprvalue>true</rtexprvalue>
</attribute>
</tag>

</taglib>
---------------------------------------------------


Thanks,
SRINI

 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!