Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
JavaRanch.com/granny.jsp
The moose likes Struts and the fly likes how to set the VO Object in response. Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCA/OCP Java SE 7 Programmer I & II Study Guide this week in the OCPJP forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "how to set the VO Object in response." Watch "how to set the VO Object in response." New topic
Author

how to set the VO Object in response.

pankaj semwal
Ranch Hand

Joined: Oct 07, 2008
Posts: 301
I am using strut2.
I am getting the value in action like this


I want to set workOrderMaster in rsponse Object.
Can any body tell
me how to do this.

Thanks
David Newton
Author
Rancher

Joined: Sep 29, 2008
Posts: 12617

Is there a particular reason you want to set the VO in the response? This is somewhat counter to S2's philosophy--in general S2 espouses creating an action property to expose data to the view layer and avoid any coupling to the servlet spec.

FAQ entry: accessing the response
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: how to set the VO Object in response.