jQuery in Action, 3rd edition
The moose likes Web Component Certification (SCWCD/OCPJWCD) and the fly likes jsp:useBean doubt. Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Building Microservices this week in the Design forum!
JavaRanch » Java Forums » Certification » Web Component Certification (SCWCD/OCPJWCD)
Bookmark "jsp:useBean doubt." Watch "jsp:useBean doubt." New topic

jsp:useBean doubt.

chani singh

Joined: Mar 23, 2006
Posts: 17
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" />

tha ans is d, why cant it be e..??
Martyn Clark
Ranch Hand

Joined: Apr 16, 2005
Posts: 108
Hi chani

tha ans is d, why cant it be e..??

Using beanName if there is not already a bean one will be created and initialized with the data in the .ser file.

Martyn...<br /> <br />SCJP 1.4 SCWCD 1.4
I’ve looked at a lot of different solutions, and in my humble opinion Aspose is the way to go. Here’s the link: http://aspose.com
subject: jsp:useBean doubt.
jQuery in Action, 3rd edition