Example of accessing DynaActionFrom properties from within an Action

2003-03-13 Thread Ian Hunter
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

Re: Example of accessing DynaActionFrom properties from within an Action

2003-03-13 Thread Kris Schneider
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

Re: Example of accessing DynaActionFrom properties from within an Action

2003-03-13 Thread Ian Hunter
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

Re: Example of accessing DynaActionFrom properties from within an Action

2003-03-13 Thread Mark Lowe
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

Re: Example of accessing DynaActionFrom properties from within an Action

2003-03-13 Thread Ian Hunter
: 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

Re: Example of accessing DynaActionFrom properties from within an Action

2003-03-13 Thread Kris Schneider
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