• 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.
 
my overalls have superpowers - they repel people who think fashion is important. Tiny ad:
the new thread boost feature brings a LOT of attention to your favorite threads
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!