aspose file tools*
The moose likes Struts and the fly likes Parameter passing between action classes Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Parameter passing between action classes" Watch "Parameter passing between action classes" New topic
Author

Parameter passing between action classes

Shashidahanu Iyyanar
Ranch Hand

Joined: Jun 22, 2005
Posts: 37
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

Joined: Nov 09, 2000
Posts: 6450
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

Joined: Jul 12, 2004
Posts: 155
request.setAttribute(String name,Object value);
or session.setAttribute(String name,Object value);
according to ur application


SCJP 1.4<br />SCWCD 1.4(91%)<br />Working on SCJD -Bodgitt & Scrapper Constructions...<br /> <br />"It takes 43 muscles to frown & 17 to smile but it doen't take any to just sit there with a dumb look on your face .. Keep Smiling "
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Parameter passing between action classes