Can we create a Action class object

2003-09-04 Thread Ashok.D
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

RE: Can we create a Action class object

2003-09-04 Thread Andrew Hill
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

RE: Can we create a Action class object

2003-09-04 Thread Danny . Yates
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

RE: Can we create a Action class object

2003-09-04 Thread Andrew Hill
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

Re: Can we create a Action class object

2003-09-04 Thread Ashok.D
: 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

RE: Can we create a Action class object

2003-09-04 Thread Andrew Hill
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

RE: Can we create a Action class object

2003-09-04 Thread Michael Ruppin
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