Hello Friends,
here is a question from JPilot exam,
Which of the following are valid uses of the <
jsp:useBean> action?
A.
<jsp:useBean id="myBean" class="MyBean" scope="session">
B.
<jsp:useBean id="myBean" class="MyBean"/>
C.
<jsp:useBean id="myBean" class="MyBean" beanName="SomeOtherBean"/>
D.
<jsp:useBean id="myBean" type="MyBean">
My answers were A and B, but it says B and D..
why so?
what is wrong with A??if you say A is not ending with a forward slash"/" but its the same with D. and why is D selected as correct ans?
thanks,
mallika