Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

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

 
Ravi Kiran Va
Ranch Hand
Posts: 2234
Eclipse IDE Firefox Browser Redhat
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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 .



 
David Newton
Author
Rancher
Posts: 12617
IntelliJ IDE Ruby
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 20
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hey can you tell me how you are retriving values of these params in Action class??
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic