• Post Reply Bookmark Topic Watch Topic
  • New Topic

what does beanName attribute refer to

 
Mike lothar
Greenhorn
Posts: 22
  • Mark post as helpful
  • send pies
  • 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
 
Narendra Dhande
Ranch Hand
Posts: 951
  • Mark post as helpful
  • send pies
  • 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
  • Quote
  • Report post to moderator
Thank you Narendra
 
my overalls have superpowers - they repel people who think fashion is important. Tiny ad:
the new thread boost feature brings a LOT of attention to your favorite threads
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!