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

last SCWCD question  RSS feed

 
Joe Man
Ranch Hand
Posts: 71
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
12.8 Identify methods that return an outer tag handler from within an inner tag handler.
question:
the answer is the "Tag getParent()" from TagSupport class? is this correct or more?
 
Sam Cala
Ranch Hand
Posts: 147
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
getParent returns immediate outer tag. findAncestorWithClass may also work if you do not want the immediate parent...
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!