• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Confusion in Classic Tags.

 
Gowher Naik
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
 
Celinio Fernandes
Ranch Hand
Posts: 549
Eclipse IDE Google Web Toolkit 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 ?
 
vinod balaji
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