• 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
  • Tim Cooke
  • Liutauras Vilda
  • Jeanne Boyarsky
  • paul wheaton
Sheriffs:
  • Ron McLeod
  • Devaka Cooray
  • Henry Wong
Saloon Keepers:
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
  • Tim Moores
  • Mikalai Zaikin
Bartenders:
  • Frits Walraven

Confusion in Classic Tags.

 
Ranch Hand
Posts: 643
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

jsp file using above tag is

op of above tag is -: doStartTag() this is body doAfterBody()

Above class(MyCTag) extends TagSupport.But in doStartTag() method i return
BodyTag.EVAL_BODY_BUFFERED.
How can i return EVAL_BODY_BUFFERED for doStartTag if i extend TagSupport?
Because we can return BodyTag.EVAL_BODY_BUFFERED if we extends BodyTagSupport and BodyTagSupport implements BodyTag which contains EVAL_BODY_BUFFERED field.

Please Help
Thanks
 
Ranch Hand
Posts: 563
Google Web Toolkit Eclipse IDE Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
If you want to evaluate the body and return EVAL_BODY_BUFFERED,
you need, as you pointed out, to extend the class BodyTagSupport or implement the interface BodyTag.

Why would you want to return EVAL_BODY_BUFFERED if you extend TagSupport ? That is not what this interface is for.

And it will not work anyways because what would it invoke ?
 
Ranch Hand
Posts: 84
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Friends,
What is the use of EVAL_BODY_BUFFERED, i read that to have access in body content we use it, can any one explain it how it will be done.
 
Amateurs built google. Professionals built the titanic. We can't find the guy that built this tiny ad:
Gift giving made easy with the permaculture playing cards
https://coderanch.com/t/777758/Gift-giving-easy-permaculture-playing
reply
    Bookmark Topic Watch Topic
  • New Topic