Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Parameter passing between action classes

 
Shashidahanu Iyyanar
Ranch Hand
Posts: 37
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I need to pass a Value Object(VO) from one action class to another action class.How is this implemented in Struts?Can anyone provide me with the answer to this problem as soon as possible?A example would be a more better option for me.Thanks in advance.
 
Jason Menard
Sheriff
Posts: 6450
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Struts Action classes can make objects available to the rest of the application by setting them as attributes of either the request, session, or ServletContext depending on which is more appropriate at any given time.
 
Bhavik Patel
Ranch Hand
Posts: 155
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
request.setAttribute(String name,Object value);
or session.setAttribute(String name,Object value);
according to ur application
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic