This week's book giveaway is in the Mac OS forum.
We're giving away four copies of a choice of "Take Control of Upgrading to Yosemite" or "Take Control of Automating Your Mac" and have Joe Kissell on-line!
See this thread for details.
The moose likes JSF and the fly likes how can i Pass an object from an Action to jsp page in struts? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Java » JSF
Bookmark "how can i Pass an object from an Action to jsp page in struts?" Watch "how can i Pass an object from an Action to jsp page in struts?" New topic
Author

how can i Pass an object from an Action to jsp page in struts?

krishna dey
Greenhorn

Joined: Mar 11, 2008
Posts: 12
In actin class i have an object and after executing this action when i will get the jsp page i want that object. How can i pass that object?

According to me using session: in action, i will put that object to session and in jsp page i will retrieve that object from session and can used for further process.

however interviewer asked other option. please help me.
[ October 14, 2008: Message edited by: krishna dey ]
Henrique Ordine
Ranch Hand

Joined: Sep 03, 2004
Posts: 127
You could set one as a property of your managed bean.
And you could set one as a request attribute.


J2EE Architect/Developer
Sath Side
Greenhorn

Joined: Sep 16, 2008
Posts: 4
Managed Bean setter injection
 
GeeCON Prague 2014
 
subject: how can i Pass an object from an Action to jsp page in struts?