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 transfer of object in struts+hibernate through session Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


JavaRanch » Java Forums » Frameworks » Struts
Reply Bookmark "transfer of object in struts+hibernate through session" Watch "transfer of object in struts+hibernate through session" New topic
Author

transfer of object in struts+hibernate through session

sadhna agrawal
Greenhorn

Joined: Nov 22, 2011
Posts: 1
how to pass object in struts action class using session..
like i have a constructor lyk
docmast dm=(id,name,surname);
i want to pass this dm to another action class constructor,how to do it.??
please reply if anyone know
Mohana Rao Sv
Ranch Hand

Joined: Aug 01, 2007
Posts: 485

Define result type as chain, whatever the data available in your action will be forwarded to next action.

http://struts.apache.org/2.0.6/struts2-core/apidocs/com/opensymphony/xwork2/ActionChainResult.html


ocjp 6 — Feeding a person with food is a great thing in this world. Feeding the same person by transferring the knowledge is far more better thing. The reason is the amount of satisfaction which we get through food is of only one minute or two. But the satisfaction which we can get through the knowledge is of life long.
 
I agree. Here's the link: http://zeroturnaround.com/jrebel - it saves me about five hours per week
 
subject: transfer of object in struts+hibernate through session
 
Similar Threads
Passing object to Execute method
Struts Passing ActionForm to Session bean. Bad or Good practice?
Problem in setting Application scope Object
Access session object in struts1 action or formbean
Accessing a session scoped variable anywhere outside the session scoped context