• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

SimpleTag nested form

 
Srinivasan Rengan
Ranch Hand
Posts: 122
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hey Ranchers,
How would you write your code in side 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


:roll:
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic