Greetings Tibor.

I did not code anything in reset(). Since I am using DynaActionForm
which gets created on the fly I do not have chance to code  in reset().

The struts-config.xml looks like this

<form-beans>
        <form-bean>
                name="Sample3From"
                type="org.apache.struts.action.DynaActionForm"
                dynamic="true" >
                <form-property name="Sample3"
type="com.JFSample.model.vo.Sample3" />
        </form-bean>
</form-beans>

The problem pops up only when we are using a javabean. If we use
primitive data type properties it works well.
In BeanUtils code we could not find code relating to javabean
initialization, it just try to call setter method to populate the value.

Thanks for your cooperation and help.
-guna


-----Original Message-----
From: Gemes Tibor [mailto:[EMAIL PROTECTED]] 
Sent: 18 November 2002 19:14
To: Struts Users Mailing List
Subject: Re: DynaActionForm & Primitive JavaBean


2002. november 18. 15:59 d�tummal Gunasekaran. V ezt �rtad:
> Greetings Tibor.
>
> I am not setting to null. I guess from 1.1 onwards the framework calls
> reset() by default. Is there anyway to get around this problem?

But who wrote that reset()? 

reset() was called in 1.0 for every request expect at create time. Since
1.1 
the reset is called on create which comes veryvery handy in case of
you'd 
like to initialise your bean depending eg on the
request.getUserPrincipal().

reset the subBean, but do not set to null.

Tib






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


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

Reply via email to