A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Win a copy of
Refactoring for Software Design Smells: Managing Technical Debt
this week in the
OO, Patterns, UML and Refactoring
how can i Pass an object from an Action to jsp page in struts?
Joined: Mar 11, 2008
Oct 14, 2008 06:45:00
In actin class i have an object and after executing this action when i will get the
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 ]
Joined: Sep 03, 2004
Oct 14, 2008 06:55:00
You could set one as a property of your managed bean.
And you could set one as a request attribute.
Joined: Sep 16, 2008
Oct 14, 2008 06:58:00
Managed Bean setter injection
I agree. Here's the link:
subject: how can i Pass an object from an Action to jsp page in struts?
passing objects from jsp to applet
request.setAttribute and getAttribute problem
passing a request object
Object bount to Request
Passing Vector Object
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2015