Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Custom Tags related query

 
Mike Pandey
Ranch Hand
Posts: 62
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Guys,

In one of the JwebPlus test there was a ?, wherein the tag handler extends TagSupport Class and the doStartTag returns EVAL_BODY_BUFFERED .
The Tool says this will give request time exception.
But i had answered Compiler error as unless we implement BodyTag interface the compiler won't trace the constant.

pls correct me if m wrong as m on for SCWCD on monday!!
 
Marc Peabody
pie sneak
Sheriff
Posts: 4727
Mac Ruby VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
As long as the code does not include the interface name with the variable reference (return BodyTag.EVAL_BODY_BUFFERED), I completely agree with you Mike. It should be a compile error.

We'll keep our fingers crossed for you on Monday.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic