是我错了,还是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的名字???我错了,还是他错了???

[1909 byte] By [zhkchi-火焰神] at [2008-5-2]
# 1
自己测试一下就知道了,我没用过 Struts
CAYU-中原 at 2007-10-19 > top of Msdn China Tech,Java,IntelliJ IDEA...
# 2
真的有点奇怪哩
mrdangdong-厚积博发 at 2007-10-19 > top of Msdn China Tech,Java,IntelliJ IDEA...
# 3
楼主英语挺好啊,用的是正版吗
# 4
这里楼主可能正确的. IDEA通过struts assitant来支持Struts, 我想说一点,工具对Struts的支持肯定落后于Struts的特性开发. 你可以把这个问题jira一下,阐述的更清楚,这个只是大家的理解问题,不是一个大问题. JetBrains的开发工程师不一定处处比你优秀, 相信自己,只要是人,他也会犯错误. :)
linux_china-Jacky at 2007-10-19 > top of Msdn China Tech,Java,IntelliJ IDEA...
# 5
呵呵,版主好久未现身了,最近忙些什么,信誉值都降到36分了,该努力了。

最近我做的一个项目需要调试ejb,试过所有的主流ide,只有idea好用,其它的在weblogic的startweblogic.cmd中设置的加载类都找不到,同时又感觉了idea的重构和cvs的强大与方便之处,用了它真是太方便,爱不释手啊。
# 6
下面是他们最新的回复:

Hi,

Thanks much for the information. You are quite right. ValidatorActionForm requires action path as form name, and ValidatorForm requires form bean name.

BeanValidatorForm is configurable via “pathValidation” property.

Sophisticated, really! J

This will be supported in Minor Release (6.0.1).

Btw, what ide have you meant? J It would be interesting to compare.

下个版本也许就可以有了,呵呵。挺高兴的

揭帖咯,谢谢大家的关注
zhkchi-火焰神 at 2007-10-19 > top of Msdn China Tech,Java,IntelliJ IDEA...