Hi,
Can we create a Action class object. I need to access the perform method
from another Action class.
If we access this Action class by using *.do, I have some limiations in my
application. I don't want to use action.do.
But I need to execute another action class perform method.
Pls put some
a bit!
/disclaimer
-Original Message-
From: Ashok.D [mailto:[EMAIL PROTECTED]
Sent: Thursday, 4 September 2003 21:42
To: Struts Users Mailing List
Subject: Can we create a Action class object
Hi,
Can we create a Action class object. I need to access the perform method
from another
create a Action class object
Hi,
Can we create a Action class object. I need to access the perform method
from another Action class.
If we access this Action class by using *.do, I have some limiations in my
application. I don't want to use action.do.
But I need to execute another action class
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
7 matches
Mail list logo