aspose file tools*
The moose likes Web Component Certification (SCWCD/OCPJWCD) and the fly likes Doubt in mocktest Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Certification » Web Component Certification (SCWCD/OCPJWCD)
Bookmark "Doubt in mocktest" Watch "Doubt in mocktest" New topic

Doubt in mocktest

sukhavasi vasavi
Ranch Hand

Joined: Jul 18, 2007
Posts: 59
A JSP page needs to instantiate a java bean to be used by only that page.
Which two jsp:useBean attributes must be used to access this attribute in JSP page?


I have confusion in this qn that in one mock test the answer gave as class and in another mock test it given as type.
Please explain?
Joe Harry
Ranch Hand

Joined: Sep 26, 2006
Posts: 9351

The answer can't be type because, the question says that a JSP page needs to instantiate a bean which means the bean did not exist. So you need to create a bean for which you have to use class. Obviously the other attribute would be it's id.

SCJP 1.4, SCWCD 1.4 - Hints for you, Certified Scrum Master
Did a rm -R / to find out that I lost my entire Linux installation!
sukhavasi vasavi
Ranch Hand

Joined: Jul 18, 2007
Posts: 59
Thank you.I got it
jQuery in Action, 2nd edition
subject: Doubt in mocktest