Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Related to bean access

 
Chandran Madesh
Greenhorn
Posts: 18
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Dear All,

I have one bean class that consiist of setter and getter methods. Am setting the bean from one servlet class, and getting bean in another java class.
after set some value to bean component, that value is not available while i am calling coresponding getter method.

My doubt is after set the bean component is it necessary to pass that bean object through httpServletResponse to the class in which we are calling the bean getter method?

Kindly some body explain me...
 
Amit Prakash Singh
Ranch Hand
Posts: 38
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Chandran,

Steps:

1. You created an object.
2. You updated that Object with some values.
3. Now you need to store reference to that object somewhere so that you can pass on that refernce to other part of the application. In your case, you can store the attribute in request or in session scope and use it in next jsp/servlet.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic