• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

release method + Classic Tags

 
Steven Colley
Ranch Hand
Posts: 290
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi ,

a question..

Since the Classic Tags are recycled and the container can reutilize it again...

What is the meaning of "release" for a classic tag??

I mean, wich "release" method is really used for recycling "Classic Tags"?

1- release() from Tag interface?
2- release() from PageContext?

Does release a Classic tag mean set the PageCotext up as null??

Tks.
 
Narendra Dhande
Ranch Hand
Posts: 951
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
I think the release mthod is not used in recycling of Custom tag. It is used when the tag is going to garbage collection.


Thanks
 
Steven Colley
Ranch Hand
Posts: 290
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Narendra,

i got this, take a look at:






here, at this point..:




That "handlePageException" method has teh following code:




It means that...if there is some error regarding tag process, the pageContext attribute is release(==null) - PageContext.release());

And, as you said, when the Classic tags are going to GC, they call TagSupport.release();

I think that�s it!

 
Narendra Dhande
Ranch Hand
Posts: 951
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

You are talking about pageContext.release() method. This is different from Tag.release() method.

Thanks
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic