wood burning stoves 2.0*
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


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
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 :-)
 
 
subject: How to send data from one action class to another action class
 
Similar Threads
how to get different jsp page using same action class method.
Action Class or Regular Java Class to use?
Calling same ActionForward from two JSP's
Passing variables jsp and servlet
Can struts repopulate collection from html:select upon submit?