On a simulated exam I sat, one of the questions stated that returning EVAL_BODY_BUFFERED from a class which extends TagSupport would cause a runtime exception and NOT a compiler error. It said that the compiler could not check this at compile-time ?
As EVAL_BODY_BUFFERED is defined in BodyTag (which is a peer to TagSupport) I'm wondering why the compiler can't check this at compile time ?
I would have thought that as the compiler can't see this constant, then it could indeed carry out a compile time check.
While, I'm on the subject.... the question contains the following (which it doesn't see as an error).....
I was under the impression that the body of a custom tag CANNOT contain scripting elements ? Is this not the case ?
Any help, much appreciated,
[ November 01, 2004: Message edited by: Neil Mc ]