是我错了,还是JetBrains(idea)公司的人错了?邮件内容实录
struts:
if form is DynaValidatorActionForm, can not prompt in validation xml file. Also not prompt field of this form.
回复:
Hi,
Thanks for the input.
What build are you using? Is validation/completion working for other form bean types?
我:
Hi,
Thanks for you reply. I use IDEA 6, build number is 5734. validation/completion is working for other type form. only DynaValidatorActionForm can not work.
FYI:
<form-bean name="ElementDetailForm" type="org.apache.struts.validator.DynaValidatorActionForm">
<form-property name="recommendationTO" type=" sg.gov.pa.sanet.rec.to.RecommendationTO "/>
</form-bean>
RecommendationTO is a JavaBean.
<action
path="/saveElementDetail"
name="ElementDetailForm"
.....
</action>
<form name="/saveElementDetail">
.....
</form>
here, can not complete action name, and not complete JavaBean's fields either.
回复:
Hi,
Why are you using ="/saveElementDetail " as your form name? As far as I know DynaValidatorActionForm does not support path-based validation.
Try ElementDetailForm as form name.
我:
Hi,
Actually, Struts support action path name as form name if your form is DynaValidatorActionForm. In our project, it can run very well.
Because I have more that one action path using this form, and they have different validation rule, so I should use action path name as form action. It can work when I run web app.
BTW, some other IDE can prompt action path name as form name when form type is DynaValidatorActionForm. :). Struts version is 1.2.8.
Thank you very much.
他居然说不可以用action path做为validation的form bean的名字???我错了,还是他错了???

