• 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

what does beanName attribute refer to

 
Greenhorn
Posts: 22
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi All,
What does beanName attribute in tag <jsp:useBean /> refer to - i like to know whether it will refer to a physical location of the bean or logical location. please explain.

Thank you
Mike
 
Ranch Hand
Posts: 951
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
The name should be a dot seperated name. beanName can refer either a class or file containing a serialized object. The value of the beanName attribute is passed to the instantite(..) method of java.beans.Beans class.

For the given bean name of x.y , bean instatiate first try to raed a seralized object from the resource x/y.ser ( yes, the file with .ser extention) and if the failed it would try to load the class x.y and create an instance of that class.

regards.
[ December 18, 2004: Message edited by: Narendra Dhande ]
 
Mike lothar
Greenhorn
Posts: 22
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thank you Narendra
 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic