Cast the ActionForm either to a DynaActionForm or simply to a DynaBean...and
then use the get(name) method.

DynaBean dynaForm = (DynaBean)form;

String myVal = (String)dynaForm.get("myVal");

Niall

----- Original Message ----- 
To: <user@struts.apache.org>
Sent: Wednesday, March 16, 2005 2:57 PM

I have some forms where I only a couple of form field elements. So instead
of creating a physical bean, I decided to try using the
org.apache.struts.action.DynaActionForm. Anyway, all was good with
validation, etc. But I ran into an issue when I tried to retrieve the values
from my form in the ActionForm.

When I used a bean I would just ask for the property by casting off to the
bean.

String myVal = ((com.myBean)form).getMyVal();

But I cannot figure out how to get the value when there is no physical bean.

Anyone know how to get around this?

Thanks
Scott



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to