• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

"tagdependent" body-content attribute

 
Hisham Marie
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
I am useing the tagdependent but the body of the tag is NOT interpreted by the tag implementation itself!!
in my JSP page:
<%! int num = 100;%>
<toto:myname>
num is <%= num %>
</toto:myname>

in my tld :
<tag>
<name>myname</name>
<tagclass>servlettest.Tag1</tagclass><bodycontent>tagdependent</bodycontent>
</tag>
in the Tag1 class:
bodyContent.writeOut(getPreviousOut());
but the browser output is :
num = 101
Where expected out is :
num is <%= num %>

Does any body has explanation ?

Hisham_marie@yahoo.com
Hisham Marie


 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic