• 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:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

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
 
I found some pretty shells, some sea glass and this lovely tiny ad:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic