• 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

Q? on body-content tagdependent /body-content

 
Ranch Hand
Posts: 44
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
i have a question
would it make any sense to have a <body-content>tagdependent</body-content> and ur tag handler class extending TagSupport . since there is now way to access the BodyContent of the tag .. and assuming u include EVAL_BODY_INCLUDE in doAfterBody, will the body show up as is(assuming its not a valid jsp code> ?. or is it a error to specify "tagdependent" as a value for a class which extendes TagSupport or implements InterationTag ? could some please clarify ?
 
Ranch Hand
Posts: 70
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,
I read the specification completely and I don't remember that there exists something telling that "tagdependent" and extending TagSupport (or impementing IterationTag) will cause some error. I dont't think containers will check fot that.
Anyway, you are right, in general, if you are using "tagdependent" you are probably going to manipulate the content of the body. But you can only do that if you implements the BodyTag interface.
BTW, let me correct something, EVAL_BODY_INCLUDE is not an option for doAfterBody(), it is only for doStartTag().
Dani
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic