Get the tools you need to learn Java skills fast!
Video tutorials, eBooks, hands-on lab exercises, sample code.
Get started
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 Software Craftsman this week in the Agile 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: 9763

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
Have you tried LearnNowOnline?
subject: Doubt in mocktest