Sure, just instantiate it and call its perform (execute in struts 1.1)
method, passing your mapping, for, request and response refs. Dont forget to
set the ActionServlet reference first!
(Of course it gets much more complicated if you dont want to give it the
same mapping and form as your calling
Why? This sounds like bad design. Why not just refactor the common
code out into a helper class and call that from both actions?
--
Danny Yates
-Original Message-
From: Ashok.D [mailto:[EMAIL PROTECTED]
Sent: 04 September 2003 14:42
To: Struts Users Mailing List
Subject: Can we
To: [EMAIL PROTECTED]
Subject: RE: Can we create a Action class object
Why? This sounds like bad design. Why not just refactor the common
code out into a helper class and call that from both actions?
--
Danny Yates
-Original Message-
From: Ashok.D [mailto:[EMAIL PROTECTED]
Sent: 04 September
: Can we create a Action class object
Sure, just instantiate it and call its perform (execute in struts 1.1)
method, passing your mapping, for, request and response refs. Dont forget
to
set the ActionServlet reference first!
(Of course it gets much more complicated if you dont want to give
PROTECTED]
Sent: Thursday, 4 September 2003 22:45
To: Struts Users Mailing List; [EMAIL PROTECTED]
Subject: Re: Can we create a Action class object
Hi Andrew Hill,
Thanks for your reply.
Can I know about setting the ActionServlet reference first!.
Thanks Regards,
Ashok.D
- Original Message
enough in my
own response to the question just now.
You would be much better off doing a spot of refactoring.
-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]
Sent: Thursday, 4 September 2003 22:37
To: [EMAIL PROTECTED]
Subject: RE: Can we create a Action class object
6 matches
Mail list logo