File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

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

 
krishna dey
Greenhorn
Posts: 12
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 128
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You could set one as a property of your managed bean.
And you could set one as a request attribute.
 
Sath Side
Greenhorn
Posts: 4
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Managed Bean setter injection
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic