• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Set Struts form bean data

 
Swapna latha
Ranch Hand
Posts: 70
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 3908
9
Chrome Fedora Hibernate
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Aren't your objects has accessors to get the data they encapsulate?
 
Swapna latha
Ranch Hand
Posts: 70
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 3908
9
Chrome Fedora Hibernate
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 70
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks Vijitha. I will move to struts forum
 
Rajaprabhu Aravindasamy
Greenhorn
Posts: 25
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You may use DTO objects to achieve your requirement..
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic