• Post Reply Bookmark Topic Watch Topic
  • New Topic

basic bean question  RSS feed

 
Sam Anjos
Greenhorn
Posts: 14
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I was wondering if it is possible to fetch a value set in a bean from another bean.
example:

How could I fetch the membership value from another bean? Or do I have something other tha accessing directly like a hidden field in the jsp page.
Hope the question is clear, thank you for your help.
Sam A.
 
Debashish Chakrabarty
Ranch Hand
Posts: 231
Firefox Browser Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The bean is accessible to your Servlets as well as other beans as any other regular Java class. You just need to import the package containing the class inside your Servlet/other bean and use its instance.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!