aspose file tools*
The moose likes Web Component Certification (SCWCD/OCPJWCD) and the fly likes jsp:useBean action with beanName attribute Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Certification » Web Component Certification (SCWCD/OCPJWCD)
Bookmark "jsp:useBean action with beanName attribute" Watch "jsp:useBean action with beanName attribute" New topic
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: 230
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%)
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: jsp:useBean action with beanName attribute