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
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
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
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
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
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().
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
7 matches
Mail list logo