The moose likes Web Component Certification (SCWCD/OCPJWCD) and the fly likes beanName Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Professional Certification » Web Component Certification (SCWCD/OCPJWCD)
Reply Bookmark "beanName" Watch "beanName" New topic
Author

beanName

Anonymous
Ranch Hand

Joined: Nov 22, 2008
Posts: 18944
Hi!
I am confused. I have this question:
You want to use a bean that is stored in com/enthu/GUI.ser file. Which of following correctly defines the tag to access it?
And the answer is:
<jsp:useBean id="pref" beanName="com/enthu/GUI" />
But in the specification beanName need type also.
beanName="{ package.class | <%= expression %> }" type="package.class"
Can some body explain me?
Thank you in advance.
Madhav Lakkapragada
Ranch Hand

Joined: Jun 03, 2000
Posts: 5040
And the answer is:
[ snip ]
<jsp:useBean id="pref" beanName="com/enthu/GUI" />
[ snip ]
Can some body explain me?

DUH? Whats there to explain. Who ever gave you that answer probably has his/her own J2EE independent implementation.
Or its a typo....
Or they are just plain stupid......
Or they like doing mistakes.......
Or they just like giving false info.....
Or they .........
For what its worth.............
- madhav.........finding it very difficult to shut-up!


Take a Minute, Donate an Hour, Change a Life
http://www.ashanet.org/workanhour/2006/?r=Javaranch_ML&a=81
Anonymous
Ranch Hand

Joined: Nov 22, 2008
Posts: 18944
This question is from JWebPlus
Peter den Haan
author
Ranch Hand

Joined: Apr 20, 2000
Posts: 3252
Seconded -- the type is mandatory here. Mistake.
- Peter
Madhav Lakkapragada
Ranch Hand

Joined: Jun 03, 2000
Posts: 5040
Since I have considerable respect to JWebPlus, I would settle for.......typo! :roll:
- madhav
 
 
subject: beanName
 
Threads others viewed
Question ID :997810765481
jsp:useBean doubt.
Mock Exam Queries from JDiscuss..
beanName
Ethurware Query
MyEclipse, The Clear Choice

cast iron skillet 49er

more from paul wheaton's glorious empire of web junk: cast iron skillet diatomaceous earth rocket mass heater sepp holzer raised garden beds raising chickens lawn care CFL flea control missoula heat permaculture