Win a copy of Svelte and Sapper in Action this week in the JavaScript forum!
  • 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 all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Bear Bibeault
  • Junilu Lacar
Sheriffs:
  • Jeanne Boyarsky
  • Tim Cooke
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • salvin francis
  • Frits Walraven
Bartenders:
  • Scott Selikoff
  • Piet Souris
  • Carey Brown

BodyTag Interface doubt

 
Ranch Hand
Posts: 166
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Suppose I give the body-content in tld as tagdependent. Is it necessary for the tag handler to implement BodyTag Interface?

Srividhya
 
Ranch Hand
Posts: 124
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
if you want to access the body content and you want to use classic custom tag ,then you should implement.
 
Ranch Hand
Posts: 295
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Originally posted by deepa raj:
if you want to access the body content and you want to use classic custom tag ,then you should implement.




You mean can't we access body content using Simple Tags.
I think we have getJspBody()in Simgle Tags API.
 
deepa raj
Ranch Hand
Posts: 124
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator



No.Atually i was trying to say

Body Content Access + Classic Custom tag means we have to use BodyTag.

We can access the body content using SimpleTagSupport by passing some writer object to the invoke method instead of passing null.



Please correct me if i am wrong.
 
Greenhorn
Posts: 26
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
yes simple tag doesn't need you to implement any BodyTag interface.Only the classic tag does need to implement if you need to access the body dentent as well,because SimpleTag is simplified version of classic tags .
 
Get meta with me! What pursues us is our own obsessions! But not this tiny ad:
Thread Boost feature
https://coderanch.com/t/674455/Thread-Boost-feature
    Bookmark Topic Watch Topic
  • New Topic