主题:struts求助
大家好,我创建了一个动态DynaActionForm,配置如下:
<form-bean name="testForm" type="com.insure.share.actionform.BaseDynaActionForm">
<form-property name="testBean" type="com.insure.modal.TestBean"/>
</form-bean>
<action path="/test" type="com.insure.action.TestAction"
input="/insureproduct/test.jsp" validate="false"
name="testForm" scope="request" parameter="method">
</action>
public class BaseDynaActionForm extends DynaActionForm {
public BaseDynaActionForm()
{
System.out.println("constructor BaseDynaActionForm");
}
}
每次动态建立DynaActionForm时,BaseDynaActionForm类都被创建两次,请问原因何在?谢谢大家!
<form-bean name="testForm" type="com.insure.share.actionform.BaseDynaActionForm">
<form-property name="testBean" type="com.insure.modal.TestBean"/>
</form-bean>
<action path="/test" type="com.insure.action.TestAction"
input="/insureproduct/test.jsp" validate="false"
name="testForm" scope="request" parameter="method">
</action>
public class BaseDynaActionForm extends DynaActionForm {
public BaseDynaActionForm()
{
System.out.println("constructor BaseDynaActionForm");
}
}
每次动态建立DynaActionForm时,BaseDynaActionForm类都被创建两次,请问原因何在?谢谢大家!