在资源配置文件里少了这些东西: errors.required={0}不能为空. errors.minlength={0}不能小于 {1} 个字符. errors.maxlength={0}不能大于 {1} 个字符. errors.invalid={0}输入格式不对. errors.byte={0}必须为字节. errors.short={0}必须为短整型. errors.integer={0}必须为整型. errors.long={0}必须为长整型. errors.float={0}必须为浮点型. errors.double={0}必须为双精度型. errors.date={0}不是一个正确的日期或格式不对. errors.range={0} is not in the range {1} through {2}. errors.creditcard={0} is not a valid credit card number. errors.email={0}不是一个有效的email地址.加上就可以了。记住,这些必须加上。
例如:
prompt.policy_name=名字为空errors.required={0} 必需填写!
errors.required={0}不能为空.
errors.minlength={0}不能小于 {1} 个字符.
errors.maxlength={0}不能大于 {1} 个字符.
errors.invalid={0}输入格式不对.
errors.byte={0}必须为字节.
errors.short={0}必须为短整型.
errors.integer={0}必须为整型.
errors.long={0}必须为长整型.
errors.float={0}必须为浮点型.
errors.double={0}必须为双精度型.
errors.date={0}不是一个正确的日期或格式不对.
errors.range={0} is not in the range {1} through {2}.
errors.creditcard={0} is not a valid credit card number.
errors.email={0}不是一个有效的email地址.加上就可以了。记住,这些必须加上。
可还是什么也没显示啊,另外问一下,上面的"{0}"是什么意思啊,怎么用啊
例子请参考我的博客
http://blog.csdn.net/kipen/archive/2007/04/07/1555191.aspx