• 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 all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Paul Clapham
  • Jeanne Boyarsky
  • Junilu Lacar
  • Henry Wong
Sheriffs:
  • Ron McLeod
  • Devaka Cooray
  • Tim Cooke
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Frits Walraven
  • Tim Holloway
  • Carey Brown
Bartenders:
  • Piet Souris
  • salvin francis
  • fred rosenberger

beanName

 
Ranch Hand
Posts: 18944
  • Mark post as helpful
  • send pies
  • 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
  • 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
  • Quote
  • Report post to moderator
This question is from JWebPlus
 
author
Posts: 3252
  • Mark post as helpful
  • send pies
  • 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
  • Quote
  • Report post to moderator
Since I have considerable respect to JWebPlus, I would settle for.......typo! :roll:
- madhav
 
I'm not dead! I feel happy! I'd like to go for a walk! I'll even read a tiny ad:
Devious Experiments for a Truly Passive Greenhouse!
https://www.kickstarter.com/projects/paulwheaton/greenhouse-1
    Bookmark Topic Watch Topic
  • New Topic