| Author |
jsp:useBean action with beanName attribute
|
Reema Patel
Ranch Hand
Joined: Jan 26, 2006
Posts: 169
|
|
Hello All, The jsp:useBean action can also optionally accept a beanName attribute which specifies the name of a bean, as expected by the instantiate() method of the java.beans.Beans class. Is this attr. coered in the SCWCD exam? Thanks, Reema
|
 |
Dilshan Edirisuriya
Ranch Hand
Joined: Apr 22, 2006
Posts: 299
|
|
|
I have seen it in mock exams.
|
Dilshan Edirisuriya SCJP1.4, SCWCD1.4, SCBCD 5
|
 |
Rohitt Vermaa
Ranch Hand
Joined: Oct 12, 2006
Posts: 232
|
|
|
I couldn't remember whether it was mock test or real test. But what you need to know is Bean name should not appear with the class attribute.
|
SCJP ,SCWCD
|
 |
Gowher Naik
Ranch Hand
Joined: Feb 07, 2005
Posts: 643
|
|
Together beanName and class cannot be used inside jsp:useBean If you use beanName then type is required.
|
 |
Manikandan Jayaraman
Ranch Hand
Joined: Sep 15, 2004
Posts: 225
|
|
Adding to your knowledge ... 1. It is more concerned about instantiating a serialized bean. 2. That is why we use 'type' attribute with it, to let the container know, what should the bean be casted to. 3. Also, 'class' is not mentioned because 'class' is more towards creating a new instance when one doesn't exist. But here, we want to bring a serialized bean (existing bean) back into action. I am sure about '1'. Points '2' and '3' are my extrapolation. [ December 28, 2006: Message edited by: Manikandan Jayaraman ]
|
Regards,<br />Mani<br />SCJP 1.4 (95%)<br />SCWCD 1.4 (94%)
|
 |
 |
|
|
subject: jsp:useBean action with beanName attribute
|
|
|