File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/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 Android Security Essentials Live Lessons this week in the Android 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
 
Consider Paul's rocket mass heater.
 
subject: How To Manually Set JavaBean Values to Create a Collection?
 
Similar Threads
Please HELP me. How To Hard Code Values in Each Row of a dataTable?
Which Package to Import to Use FacesContext's getRequestMap()?
program error
encapsulation..???
inner anonymous class return object