RE: [Newbie] Is it worth subclassing your own Action and ActionForm classes to attain code re-use?

2004-02-23 Thread Mathew, Manoj
Hi Mark I had a similar situation adn what i did is i made a the parent action form an Abstract class. and say i have twi action forms form1 and form 2 which extends this Abstract class. Then i have different getData() for these two form to populate the form. So i can simple use the getters

Re: [Newbie] Is it worth subclassing your own Action and ActionForm classes to attain code re-use?

2004-02-23 Thread Raphaël di Cicco
I use an ActionBaseForm where I put mapped getters/setters for the properties so every sub-Form can use it without coding anything. - Original Message - From: Mark Jones [EMAIL PROTECTED] To: Struts User [EMAIL PROTECTED] Sent: Sunday, February 22, 2004 5:40 AM Subject: [Newbie] Is it

Re: [Newbie] Is it worth subclassing your own Action and ActionForm classes to attain code re-use?

2004-02-23 Thread Rick Reumann
On Sat, 2004-02-21 at 23:40, Mark Jones wrote: In what circumstances might you want to subclass your own Action class and, if you did, how would you handle/inherit the form data? Would you just use different subclasses of your Action but just one ActionForm for each Action? Did you look at

Re: [Newbie] Is it worth subclassing your own Action and ActionForm classes to attain code re-use?

2004-02-23 Thread Oswald Campesato
Hello, Rick: I'm joining this out-of-context, so apologies if it's been discussed. Some time ago I extended ActionServlet in order to collect some timing-related results and then generated an XML file to which I applied an XSL stylesheet in order to generate an SVG-based bar chart. Then I

Re: [Newbie] Is it worth subclassing your own Action and ActionForm classes to attain code re-use?

2004-02-22 Thread Adam Hardy
On 02/22/2004 05:40 AM Mark Jones wrote: My application allows a user to make various different types of bookings for a (fictional!!!) hospital and logs them in a database. Each type of booking has a set of common properties but also different ones depending on the type of booking being made. I

RE: [Newbie] Is it worth subclassing your own Action and ActionForm classes to attain code re-use?

2004-02-22 Thread Matthias Wessendorf
Hi Mark, like Adam said, i also have one super-action-class :-) i declare it as abstract an implement execute()-methode form Action inside execute(), i call an abstract methode (e.g. doExecute()) so our ActionServlet(it´s RequestProcessor...) calls execute() and every subclassed doExecute().

[Newbie] Is it worth subclassing your own Action and ActionForm classes to attain code re-use?

2004-02-21 Thread Mark Jones
My application allows a user to make various different types of bookings for a (fictional!!!) hospital and logs them in a database. Each type of booking has a set of common properties but also different ones depending on the type of booking being made. I have divided my classes into a