• Post Reply Bookmark Topic Watch Topic
  • New Topic

custom tags doubt  RSS feed

 
sudheer kiran
Ranch Hand
Posts: 237
Firefox Browser MyEclipse IDE Tomcat Server
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
<my:simpleTag>
<my:complexTag />
</my:simpleTag>

this was given in HFS as true
my doubt how can a classic tag can have a simpletag parent? it is not allowed right?
 
Rob Spoor
Sheriff
Posts: 20943
81
Chrome Eclipse IDE Java Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Sure it is. It's the entire reason for the TagAdapter class - it wraps the SimpleTag parent so it looks like a Tag parent. With its getAdaptee() method you get the actual SimpleTag (as a JspTag).
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!