short - validates that a field can be converted to a Short.
<field property="productnumber" depends="short">
<arg position="0" key="order.prodno"/>
</field>
以上是Struts开发文档中有关Struts-validator的部分功能应用。
但是看不懂这个功能怎么用,为什么只有参数,没别的。说是能转换数据类型,怎么转啊?
各位,帮忙啊!
<field property="productnumber" depends="short">
<arg position="0" key="order.prodno"/>
</field>
以上是Struts开发文档中有关Struts-validator的部分功能应用。
但是看不懂这个功能怎么用,为什么只有参数,没别的。说是能转换数据类型,怎么转啊?
各位,帮忙啊!
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货