RE: Can we create a Action class object

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

RE: Can we create a Action class object

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

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