A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Win a copy of
EJB 3 in Action
this week in the
EJB and other Java EE Technologies
Web Component Certification (SCWCD/OCPJWCD)
Joined: Jul 08, 2005
Jul 08, 2005 14:50:00
Hi, this is a question from JWebPlus.
<%@ taglib uri="example" prefix="example" %>
If the aTagWithBody handler extends from
and returns EVAL_BODY_BUFERED from doStartTag(),what will it print?
select one correct option
a)the tag handler class would not compile
b)an exception at request time
c)"Body Content" will be printed
he gave the answer b
but i thought it is a
can anyone help?
Joined: Oct 25, 2004
Jul 08, 2005 15:58:00
Yes I thinking the answer correct is B
"b)an exception at request time"
because aTagWithBody handler extends from
y the handler must extends from
I hope someone can to help with my answer
Joined: Mar 09, 2005
Jul 08, 2005 16:50:00
Yeah even i agree with u.aTagHandler should extend
in order to return EVAL_BODY_BUFFERED.Is it not?
Joined: Mar 29, 2004
Jul 09, 2005 00:14:00
I agree with u all, according to your answers, it should give compilation error (EVAL_BODY_BUFFERED not defined..) not error at request time ... So answer a is correct. AM i correct?
I agree. Here's the link:
subject: jwebplus question
Doubt Enthuware Mock Exam
doubt when compiler error and when exception generate in these questions
regarding custom tags
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2014