Hi,
In the
coffee cram for ch 8 question 11 (regarding the <
jsp:useBean> std action) there seems to be an ambiguity...
Answer D is given as correct i.e. the statement... "Either the class or type attributes may be specified,
but at least one" is given as true.
However, in the bullet point section (pg 414) it states that "the class attibute is optional" (and makes no mention of the type attribute). This makes sense as, in the case where the Bean already exists as an attribute, neither the class or type attributes are required - as the container does not need to create a new object.
The coffee cram answer and the bullet point seem to conflict with each other.
So, which is the case... is 'id' the only required attribute in <jsp:useBean> ?
Thanks for your time,
Neil.