Since this isn't as clear as it could be, here's an example for anyone who
cares:
(this class adds or updates a bulletin on a message board; all data access
goes through a central service called the DataStore)
public final class UpdateBulletinAction extends Action {
public
By using BeanUtils.getProperty or PropertyUtils.getProperty you can essentially
ignore whether the form is a DynaActionForm or not.
Quoting Ian Hunter [EMAIL PROTECTED]:
Since this isn't as clear as it could be, here's an example for anyone who
cares:
8 snip 8
--
Kris Schneider mailto:[EMAIL
PROTECTED]
Sent: Thursday, March 13, 2003 9:17 AM
Subject: Re: Example of accessing DynaActionFrom properties from within an
Action
By using BeanUtils.getProperty or PropertyUtils.getProperty you can
essentially
ignore whether the form is a DynaActionForm or not.
Quoting Ian Hunter [EMAIL
I had a headache over all this until i spent a couple fo days using the
beanutils package..
org.apache.common.beanutils
The dynaaction forms are basically the same..
your means of extracting the stored values from the form look like they
should work , although i prefer using toString() rather
: Mark Lowe [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Sent: Thursday, March 13, 2003 9:28 AM
Subject: Re: Example of accessing DynaActionFrom properties from within an
Action
I had a headache over all this until i spent a couple fo days using the
beanutils package
and String...I'll look into it later.
- Original Message -
From: Mark Lowe [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Sent: Thursday, March 13, 2003 9:28 AM
Subject: Re: Example of accessing DynaActionFrom properties from within an
Action
I had a headache over
6 matches
Mail list logo