This week's book giveaway is in the Java 9 forum.
We're giving away four copies of Java 9 Modularity: Patterns and Practices for Developing Maintainable Applications and have Sander Mak & Paul Bakker on-line!
See this thread for details.
Win a copy of Java 9 Modularity: Patterns and Practices for Developing Maintainable Applications this week in the Java 9 forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

"tagdependent" body-content attribute  RSS feed

 
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


 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!