This week's book giveaway is in the OCAJP 8 forum. We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line! See this thread for details.
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...
<b>Chandran.M<br /> <br /> <br /> Do Your Best <br /></b>
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.