鏆傛棤浠嬬粛
全部博文(40)
发布时间:2004-08-26 09:16:37
您已经成功注册ITPUB Blog帐号。请进入http://blog.itpub.net/admin.php管理您的Blog站点。建议先修改Blog的名称并建立文档分类,系统已经默认建立了【初始分类】。登陆密码与itpub论坛帐号相同。如有问题请在斑竹区发贴。谢谢。......【阅读全文】
发布时间:2000-01-01 00:00:26
In struts,two ways to use validation for formbean.One way you can extend ValidatorActionForm,just like below:[@more@] public class FormName extends ValidatorActionForm { ... } Another way you can config on struts-config.xml file,for example: ... After that struts-cofig.xml have been changed to : Now,We need to config your validation.xml to map you Action: .............. ......【阅读全文】
发布时间:2000-01-01 00:00:21
Life,just like a long river,keep running and pushing me behind me.I asked myself serveral times about how my life looks like.Look back those years when I left school,my life like a boat in the river,is always up and down with much more good memory in my mind that I really enjoy.I have to say thank you for someone who I can't see,I can't tell,maybe is not exist but controling my life,give me help in my hard time.Now I am getting older,I still compare myself with the other guys,successful in their......【阅读全文】
发布时间:2000-01-01 00:00:05
Struts和Validator的关系 应该指出的是Validator框架本身是因Struts框架而建立的。Validator的创建者David Winterfeldt在使用Struts的过程中发现,在许多ActionForm类中需要反复使用同一个验证规则,这样造成了大量的代码冗余。于是他决定创建Validator框架来消除这种冗余,这样Validator就诞生了。 尽管Validator架构最初是为Struts架构而生,但它还是被设计和构造成了可以独立于Struts架构而单独使用。这桓鎏卣魇沟媚憧梢栽谌魏蔚挠τ贸绦蛑惺褂谜飧隹蚣埽?槐毓芩?遣皇荢truts架构的。并不会因为你不使用Struts框架而影响Validator架构......【阅读全文】