• 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:
  • Tim Cooke
  • Campbell Ritchie
  • paul wheaton
  • Ron McLeod
  • Devaka Cooray
Sheriffs:
  • Jeanne Boyarsky
  • Liutauras Vilda
  • Paul Clapham
Saloon Keepers:
  • Tim Holloway
  • Carey Brown
  • Piet Souris
Bartenders:

BodyTag Interface doubt

 
Ranch Hand
Posts: 166
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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 .
 
reply
    Bookmark Topic Watch Topic
  • New Topic