It usually means that there is business logic trapped in the Action. Rather than call another action, extract that business logic into a separate class that anyone can call on demand.
The Actions are best used as *adapters* to your business logic layer. The first sign that an Action is no longer an adapter, but part of an API, is the yearning to call one Action from another. :)
A very excellent tool for building a business layer is the new Commons Chain package in the sandbox.
http://jakarta.apache.org/commons/sandbox/chain/
HTH, Ted.
Gurpreet Dhanoa wrote:
hi Dennis ,
Thanks for your prompted answer but in this case i'll be forwarding to another action from one action.BUt i dont want to do that. I want to execute perform method of Action2 in the perform method of ACtion1 then I want to forward it to the JSP from the Action1 itself.
Is this something possible
Thanks Gary
----- Original Message ----- From: "Hunziker Dennis" <[EMAIL PROTECTED]> To: "'Struts Users Mailing List'" <[EMAIL PROTECTED]> Sent: Tuesday, November 25, 2003 5:23 PM Subject: RE: ACtion Form within an ACtion
Hi
Something like that (taken from the Struts example) should work.
private String page = "/action.do"; pageContext.forward(page);
Kind regards Dennis Hunziker
-----Original Message----- From: Gurpreet Dhanoa [mailto:[EMAIL PROTECTED] Sent: Dienstag, 25. November 2003 12:47 To: Struts Users Mailing List Subject: ACtion Form within an ACtion
HI All
Can anybody link me to the track of calling one Action within another Action.
I have one Action File in which I want to call one more ACtion File and
then
I want to forward to the JSP
Can anybody Help
Thanks gary
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
-- Ted Husted, Junit in Action - <http://www.manning.com/massol/>, Struts in Action - <http://husted.com/struts/book.html>, JSP Site Design - <http://www.amazon.com/exec/obidos/ISBN=1861005512>.
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

