aspose file tools*
The moose likes JSP and the fly likes How To Manually Set JavaBean Values to Create a Collection? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Soft Skills this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Java » JSP
Bookmark "How To Manually Set JavaBean Values to Create a Collection?" Watch "How To Manually Set JavaBean Values to Create a Collection?" New topic
Author

How To Manually Set JavaBean Values to Create a Collection?

JiaPei Jen
Ranch Hand

Joined: Nov 19, 2000
Posts: 1309
Ladies and Gentlemen, I did some work. How about what I come up with below. I have a Java class that supplies data manually and creates a Collection of beans. And I define a JavaBean in another class.

Am I on the right track to manually code data into a Collection of beans?

and my JavaBean looks like:

[ August 30, 2005: Message edited by: JiaPei Jen ]
Jeyakumar Balasubramanian
Greenhorn

Joined: Sep 20, 2005
Posts: 8
This is somewhat ok.

Declare the 2 members of bean as private and make the following changes in bold in ur code.



Jey
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: How To Manually Set JavaBean Values to Create a Collection?