File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Struts and the fly likes Set Struts form bean data Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Set Struts form bean data" Watch "Set Struts form bean data" New topic
Author

Set Struts form bean data

Swapna latha
Ranch Hand

Joined: Dec 18, 2011
Posts: 70
Here i am facing one issue. I have used data from three different tables in one select statement in native sql which is of DB2. Then when i am desplaying the data i am getting objects here. But i want actual data not the objects.

Thanks & Regards
Kori Swapna Latha
Vijitha Kumara
Bartender

Joined: Mar 24, 2008
Posts: 3838

Aren't your objects has accessors to get the data they encapsulate?


SCJP 5 | SCWCD 5
[How to ask questions] [Twitter]
Swapna latha
Ranch Hand

Joined: Dec 18, 2011
Posts: 70
I am getting the list (list of objects) from DAO class. So i want to set those objects to form bean to display on UI. Could you please tell me how to set those objects in list to form bean in struts 1.3.8.
Vijitha Kumara
Bartender

Joined: Mar 24, 2008
Posts: 3838

So i want to set those objects to form bean to display on UI

It depends on how your UI expects the data, of what type etc... What you already have in the UI?

(I wonder why you work on Struts 1 unless its a legacy application?)

Now this seems a Struts issue so I shall move it to a more appropriate place. Next time please make sure to choose a correct forum for your questions.
Swapna latha
Ranch Hand

Joined: Dec 18, 2011
Posts: 70
Thanks Vijitha. I will move to struts forum
Rajaprabhu Aravindasamy
Greenhorn

Joined: Dec 26, 2011
Posts: 25
You may use DTO objects to achieve your requirement..
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Set Struts form bean data