Hi',
I'm migrating apps from Struts 1.1 to Struts 1.2 and have some difficulties with DynaActionForm
My DynaForm look like :
<form-bean name="loginForm" type="org.apache.struts.validator.DynaValidatorForm">
<form-property name="user" type="com.myClasses.User"/>
</form>
The problem is that the properties are not initialised, the default constructor isn't called
So I can't call in the jsp for example <html:text property="user.name"/>
I've looked in Struts source. The init of properties seem to be initialised in FormBeanConfig.createActionForm(Servlet servlet)
But the code it depends of the test :
if (form instanceof DynaBean && ((DynaBean)form).getDynaClass() instanceof MutableDynaClass) {
The condition "(DynaBean)form).getDynaClass() instanceof MutableDynaClass" isn't true,
... So the properties are not initialised
What did I miss ?
Thanks
Franck --------------------------------------------------------
Orange Caraibe IMPORTANT. CONFIDENTIEL : Les informations contenues dans ce message sont confidentielles et peuvent etre protegees par la loi. Ce message est etabli a l'intention exclusive de ses destinataires. Si vous recevez ce message par erreur, toute lecture, exploitation ou transmission des informations contenues dans ce message est interdite. Merci de prevenir l'expediteur et de supprimer de votre ordinateur le message et tous les fichiers eventuellement attaches. Tout message electronique est susceptible d'alteration. Orange Caraibe decline toute responsabilite au titre de ce message s'il a ete altere, deforme ou falsifie ; de meme, il appartient au destinataire de s'assurer de l'absence de tout virus.http:/www.orangecaraibe.com IMPORTANT. CONFIDENTIALITY : this e-mail is confidential and meant for only the intended recipients of the transmission, and may be a communication privileged by law. If you received this e-mail in error, any review, use, dissemination, distribution or copying of this e-mail is strictly prohibited. Please notify the sender immediately of the error by return e-mail and please delete this message and any attachments from your system. Thank you in advance for your cooperation. E-mails are susceptible to alteration. Orange Caraibe shall not be liable for the message if altered, changed or falsified. the recipient should ensure they are actually virus free. Orange Caraibe may monitor all incoming and outgoing e-mails in line with current legislation. http:/www.orangecaraibe.com