Ok, I fount what was causing the problem. Turns out that I was missing a

'public' modifier on the Person constructor class which prevented the
Struts FormPropertyConfig class to call create a new instance of Person.
In MHO it should have printed something to the log instead of swallowing
the error.

I still would be happy to hear your opinion on my second question - how
to add properties in a DynaActionForm derived class.

Thanks,
Erez

-----Original Message-----
From: Erez Efrati [mailto:[EMAIL PROTECTED] 
Sent: Monday, September 01, 2003 10:20 PM
To: 'Struts Users Mailing List'
Subject: Question about DynaActionForm


I am trying to do the following test form:

<form-bean name="TestDynaForm"
type="org.apache.struts.validator.DynaValidatorForm">
      <form-property name="method" type="java.lang.String" />
        <form-property name="page" type="java.lang.Integer" />
        <form-property name="person" type="web.Person" />
</form-bean>

In my Action I get the person member = NULL.

1) Is it forbidden to use normal Objects embedded inside a DynaForm?
2) Is it possible to extend a DyaActionForm and have the Derived class
insert new properties on the fly, things like 'method' 'page' etc..?

Thanks in advance,
Erez



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



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

Reply via email to