aspose file tools*
The moose likes JSP and the fly likes Passing more than one data to bean Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » JSP
Bookmark "Passing more than one data to bean" Watch "Passing more than one data to bean" New topic
Author

Passing more than one data to bean

Vasudevan Gopalan
Ranch Hand

Joined: Aug 29, 2003
Posts: 67
Hi all,
How to pass more than one record to bean.I need to pass empid,empname,address data's to bean so that it updates the name and address based on the empid.How to pass these values to a bean.If i need to pass only two columns(say empid and name) we can pass by list .How to pass these three columns to bean.
Regards
vasu
R K Singh
Ranch Hand

Joined: Oct 15, 2001
Posts: 5371
encapsulate empname and address in one class.
Or better will be have a employee class whose attributes are name, id and address. Store them in a collection object and assign to bean.


"Thanks to Indian media who has over the period of time swiped out intellectual taste from mass Indian population." - Chetan Parekh
Vasudevan Gopalan
Ranch Hand

Joined: Aug 29, 2003
Posts: 67
I will be passing more than one record at a time.
Craig Jackson
Ranch Hand

Joined: Mar 19, 2002
Posts: 405
[QOUTE]
Store them in a collection object and assign to bean.
--------------------
Ravish
[/QOUTE]
Store your employee information in a Value or Data object. Place the Data object in a collection/vector and send it to the bean.
craig
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Passing more than one data to bean