aspose file tools*
The moose likes Struts and the fly likes How to send data from one action class to another action class Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "How to send data from one action class to another action class" Watch "How to send data from one action class to another action class" New topic
Author

How to send data from one action class to another action class

Harish Maridi
Ranch Hand

Joined: May 20, 2008
Posts: 60
Hi Folks,

I need to use the data which is in a action class, for two JSPs (second JSP will come in to picture upon the submission of the first page).

I am using the data in action class in first jsp because there is a mapping between them. Is there any way to bring data to second JSP.

Thank you in advance
-mark
Hongli Li
Ranch Hand

Joined: Oct 29, 2006
Posts: 124
there are many ways to do it, the simplest way is store the date in request scope and forward the request to the second action.
Cheers


Do you know why this cup is useful? Because it is empty.
Harish Maridi
Ranch Hand

Joined: May 20, 2008
Posts: 60
Yea I Tried... It worked for me... Thank you.
rajanikanth bhagavan kanth
Ranch Hand

Joined: May 20, 2008
Posts: 78
Use same form for both JSP's :-)
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: How to send data from one action class to another action class