Topic: about struts validator

  Print this page

1.about struts validator Copy to clipboard
Posted by: redmiddle
Posted on: 2003-07-01 10:12

除了struts例子中的那几种校验script.如果自己想增加新的改如何弄?例如检测某两个值是否相同?或者是校验某种格式等等.....

2.Re:about struts validator [Re: redmiddle] Copy to clipboard
Posted by: why
Posted on: 2003-07-01 11:35

Could you please tell me which "struts例子中的那几种校验script" you're referring to?Smile

3.Re:about struts validator [Re: redmiddle] Copy to clipboard
Posted by: redmiddle
Posted on: 2003-07-01 11:39

例如检测是否必填...最大长度...最小长度等等...

4.Re:about struts validator [Re: redmiddle] Copy to clipboard
Posted by: uu_snow
Posted on: 2003-07-01 13:01

参照着例子,写就可以了,没问题,我都是这么做的

5.Re:about struts validator [Re: redmiddle] Copy to clipboard
Posted by: redmiddle
Posted on: 2003-07-01 14:48

哎呀.我是问如何比较两个栏位的值.而不是问判断某个栏位的值.哪个例子有.

6.Re:about struts validator [Re: redmiddle] Copy to clipboard
Posted by: zhourumin
Posted on: 2003-07-02 10:16

你可以扩展你自己的验证来实现阿

7.Re:about struts validator [Re: redmiddle] Copy to clipboard
Posted by: redmiddle
Posted on: 2003-07-02 10:57

如何扩展?

8.Re:about struts validator [Re: redmiddle] Copy to clipboard
Posted by: greeni
Posted on: 2003-07-05 10:50

如果你要自行製作 validator
你可以參考下面這些書籍

http://www.manning.com/husted/chap12.pdf

or find the chapter 11 The Validator Framework in Oreilly " Programming Jakarta Struts "

或者研究 jakarta-commons validator
http://jakarta.apache.org/commons/validator/

我想這不是很困難的一件事情
Good luck


   Powered by Jute Powerful Forum® Version Jute 1.5.6 Ent
Copyright © 2002-2021 Cjsdn Team. All Righits Reserved. 闽ICP备05005120号-1
客服电话 18559299278    客服信箱 714923@qq.com    客服QQ 714923