• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Action in Action

 
Sai Prakash
Greenhorn
Posts: 8
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

Is it possible to call one action class from another action class ?






 
Seetharaman Venkatasamy
Ranch Hand
Posts: 5575
Eclipse IDE Java Windows XP
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
that is what ActionForward do
 
David Newton
Author
Rancher
Posts: 12617
IntelliJ IDE Ruby
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Which version of Struts?

Also, make *very* sure you really want to do this--action chaining is a strongly-discouraged practice.
 
Sagar Rohankar
Ranch Hand
Posts: 2904
1
Java Spring Ubuntu
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
seetharaman venkatasamy wrote:that is what ActionForward do

No, ActionForward redirects or forwards the action class once its finished with the activities. Its a return type of Actions execute() method and can be mapped in struts config or can be build in the action class it self.

Now it may call another action, but it will create new object of request and response.
And what I suppose the original author asked is like this:

 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic