• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

release method + Classic Tags

 
Ranch Hand
Posts: 290
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Ranch Hand
Posts: 951
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,

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

Thanks
reply
    Bookmark Topic Watch Topic
  • New Topic