aspose file tools*
The moose likes Struts and the fly likes Struts2- How to pass dynamic parameters 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 "Struts2- How to pass dynamic parameters from one Action class to another Action class" Watch "Struts2- How to pass dynamic parameters from one Action class to another Action class" New topic
Author

Struts2- How to pass dynamic parameters from one Action class to another Action class

Ravi Kiran Va
Ranch Hand

Joined: Apr 18, 2009
Posts: 2234

Hi ,

I am trying to use Redirect and comunicating from one Action to Another Action class .

This is inside my Struts Action class

<action name="MyAction" class="mypack.MyClass">
<result name="success" type="redirect">anotheractionnamehere/>
<param name="userName">Ravi</param>
<param name="email">ravi@gmail.com</param>
</action>

now please let me know how the param can have dynamic values here .




Save India From Corruption - Anna Hazare.
David Newton
Author
Rancher

Joined: Sep 29, 2008
Posts: 12617

Others may continue to answer your questions, but this is the last time I will: *everything* you've asked is in the documentation.

http://struts.apache.org/2.1.8/docs/result-configuration.html#ResultConfiguration-DynamicResults
http://struts.apache.org/2.1.8/docs/parameters-in-configuration-results.html

I don't understand how you expect to grow as an effective developer while being completely unwilling to read even the most fundamental documentation or show any initiative. There's a *lot* of Struts 2 documentation here (and it's included in the distro):

http://struts.apache.org/2.1.8/docs/guides.html

Read some.

Please also read the ShowSomeEffort JavaRanch FAQ entry.
Rushabh Vashi
Greenhorn

Joined: Apr 27, 2011
Posts: 20
Hey can you tell me how you are retriving values of these params in Action class??
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Struts2- How to pass dynamic parameters from one Action class to another Action class