File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Web Component Certification (SCWCD/OCPJWCD) and the fly likes Ethurware Query Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Certification » Web Component Certification (SCWCD/OCPJWCD)
Bookmark "Ethurware Query" Watch "Ethurware Query" New topic

Ethurware Query

Sanjay pts
Ranch Hand

Joined: Nov 07, 2000
Posts: 357
You want to use a bean that is stored in com/enthu/GUI.ser file. Which of following statements correctly defines the tag that accesses the bean?

Select 1 correct option.
a <jsp:useBean id="pref" name="com/enthu/GUI.ser" />
b <jsp:useBean id="pref" name="com.enthu.GUI" />
c <jsp:useBean id="pref" type="com/enthu/GUI.ser" />
d <jsp:useBean id="pref" beanName="com.enthu.GUI" type="com.enthu.GUI"/>
e <jsp:useBean id="pref" class="com.enthu.GUI.ser"

Which is the correct answer.???

Given answer is d. But i think its e.

Please give me suggestion.

Eat JAVA, Drink JAVA, Sleep Java
Narendra Dhande
Ranch Hand

Joined: Dec 04, 2004
Posts: 951

d is right. The .ser files are stored in pysicla disk file with state. Only the beanName option try to find it.


Narendra Dhande
SCJP 1.4,SCWCD 1.4, SCBCD 5.0, SCDJWS 5.0, SCEA 5.0
Vishwa Kumba
Ranch Hand

Joined: Aug 27, 2003
Posts: 1066
The allowed combinations of the mandatory attributes for the <jsp:useBean> tag are:

1. class
2. type
3. class and type
4. bean and type

(id attribute is anyway mandatory in all the 4 above options).

Hope the above helps to remember this easily.
I agree. Here's the link:
subject: Ethurware Query
It's not a secret anymore!