Page 1 of 1

About Question enthuware.jwpv6.2.1081 :

Posted: Sat Apr 06, 2013 4:25 am
by sebastien
Hi,

maybe I'm wrong but I'm quite sure "class" have to be a super class of "type"

so second option is wrong and third is ok.

and the explanation is also wrong

please tell me if I'm wrong

Sébastien

Re: About Question enthuware.jwpv6.2.1081 :

Posted: Sat Apr 06, 2013 6:19 am
by admin
No, the given explanation is correct. Type can be a superclass. You may want to try it out.

thank you,
Paul.

Re: About Question enthuware.jwpv6.2.1081 :

Posted: Sun Jan 24, 2016 4:24 pm
by asdf123
It does not specify for answer 3 that com.abc.SubclassOfMyBean is a subclass for com.abc.MyBean (like in answer 2).

So the correct aswers would be:
2. <jsp:useBean id="bean1" scope="session" class="com.abc.SubclassOfMyBean" type="com.abc.MyBean"/> is a valid usage of useBean action. (Given that SubclassOfMyBean is a subclass of MyBean.)

3. <jsp:useBean id="bean1" scope="session" class="com.abc.MyBean" type="com.abc.SubclassOfMyBean"/> is a valid usage of useBean action.

5. <jsp:useBean id="bean1" type="com.abc.MyBean" /> is a valid usage of useBean action.


If the "(Given that SubclassOfMyBean is a subclass of MyBean.)" would be inside the question or next to aswer 3 as well, correct ones would be 2 and 5.