• 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
  • Liutauras Vilda
  • Jeanne Boyarsky
  • Devaka Cooray
  • Paul Clapham
Sheriffs:
  • Tim Cooke
  • Knute Snortum
  • Bear Bibeault
Saloon Keepers:
  • Ron McLeod
  • Tim Moores
  • Stephan van Hulst
  • Piet Souris
  • Ganesh Patekar
Bartenders:
  • Frits Walraven
  • Carey Brown
  • Tim Holloway

Confusion in Classic Tags.

 
Ranch Hand
Posts: 643
  • Mark post as helpful
  • send pies
  • 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: 560
Google Web Toolkit Eclipse IDE Java
  • Mark post as helpful
  • send pies
  • 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
  • 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.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!