• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Tim Cooke
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Liutauras Vilda
Sheriffs:
  • Rob Spoor
  • Junilu Lacar
  • paul wheaton
Saloon Keepers:
  • Stephan van Hulst
  • Tim Moores
  • Tim Holloway
  • Carey Brown
  • Scott Selikoff
Bartenders:
  • Piet Souris
  • Jj Roberts
  • fred rosenberger

beanName

 
Ranch Hand
Posts: 18944
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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.
 
Ranch Hand
Posts: 5040
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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!
 
Anonymous
Ranch Hand
Posts: 18944
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
This question is from JWebPlus
 
author
Posts: 3252
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Seconded -- the type is mandatory here. Mistake.
- Peter
 
Madhav Lakkapragada
Ranch Hand
Posts: 5040
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Since I have considerable respect to JWebPlus, I would settle for.......typo! :roll:
- madhav
 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic