http://www.cjsdn.net/post/view?bid=20&id=138654&sty=1i never use struts validator... u may need to implement ur validation-rules.xml and ur validator plugin.. or u can try to remove some un-used nodes from validation-rules.xml yes, I am having the same issue, just don't have time to think about this.I am still believing, there is no such thing, like a javascript framework. The reason is just what you said, the overhead in size is too big. Once someone gave me this js framework, it was about 110K in size. Does anyone want to download a 5K page with 110K javascript embedded?Nontheless, it seems a lot of people buying in this validator lib, for its simplicity to use, do some setup and then it's there. In this case, we shouldn't manually to change it at all, let the tool do the dirty job. So my advice is "Forget it, it's not worth it" - quote from the snowman, threatened by the rabbit with a hairdryer.
这是Struts库自动生成的。
u may need to implement ur validation-rules.xml and ur validator plugin..
or u can try to remove some un-used nodes from validation-rules.xml yes, I am having the same issue, just don't have time to think about this.I am still believing, there is no such thing, like a javascript framework. The reason is just what you said, the overhead in size is too big. Once someone gave me this js framework, it was about 110K in size. Does anyone want to download a 5K page with 110K javascript embedded?Nontheless, it seems a lot of people buying in this validator lib, for its simplicity to use, do some setup and then it's there. In this case, we shouldn't manually to change it at all, let the tool do the dirty job. So my advice is "Forget it, it's not worth it" - quote from the snowman, threatened by the rabbit with a hairdryer.
然后在validation.xml里面直接使用它就行了
----
上面说了,就是这样做