Look at
jsp:useBean specification
<jsp:useBean id="beanInstanceName"
scope="page|request|session|application"
{
class="package.class" [ type="package.class" ]|
beanName="{package.class | '${' Expression '}' | <%= expression %>}" type="package.class" |
type="package.class"
}
{ /> | > other elements </jsp:useBean> }
as you can see "beanName can do everything "class" can do it even have support to EL and expression . what is the significance of class ?
Can we use both "class" and "beanName" together? the specification says its not possible.
Do write whatever you know about this two attribute even though it may not related to this question.
Regards,
Ranajit