Execute Struts actions within Struts actions

Let say we have Actions A and B.

In Actions B, I will execute some business logic and execute the same business logic I coded in Actions A.

Is it possbile that in Actions B I can execute Actions A, thus avoid having the same code in 2 different places

Please let me know. Thanks

[303 byte] By [timhuya] at [2007-11-27 10:49:38]
# 1

You can write a private method which have the common business logic and call that from both the action methods.

R@njita at 2007-7-29 11:20:29 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...
# 2

You should create an additional layer to perform business logic and you wouldn't have that problem

manuel.leiriaa at 2007-7-29 11:20:29 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...