• Post Reply Bookmark Topic Watch Topic
  • New Topic

Identical Nested Tags (Custom Tags)  RSS feed

 
Vijesh Kumar
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

Is it possible to nest identical tags? I could not do this.
For example,
<a:test>
<a:test>
</a:test> ----x
</a:test> ------y

The doEndTag() method for the tag x is called first for outer tag instance instead of inner tag.

Thanks
Vijesh
 
Chinmaya Chowdary
Ranch Hand
Posts: 437
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi, Vijesh.

We can use.

During execution container/server, calls the first <a:test> tag and executes according to its lifecycle..., executes the body of the tag(here it is second <a:test></a:test> tag).
 
Vijesh Kumar
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks I got it right
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!