摘要: xwork配置文件必需放在类路径(classPass)的根目录下,必需遵循DTD规范 xwork.xml文件的标签元素1、xwork:xwork配置文件的内容,都是定义在标签中,它的直接子标签有和2、Package:我们的Action,Interceptor,Result-type都是在此标签中定义,标签有个必需的属性"name",它用来标识唯一的一个package.属性"extends"是可选... 阅读全文
posted @ 2007-07-03 13:21 王永庆 阅读(1117) 评论(1) 推荐(0) 编辑
摘要: 1、注册我们的验证类型:webwork验证是通过验证类型来实现的,验证类型是通过类(该类必需实现com.opensymphony.xwork.validator.Validator接口,或者继承ValidatorSoupport,FieldValidatorSupport等)来实现的,在使用验证类型之前,必需要在validatorFactory中注册,一般使用配置文件validators.xml进... 阅读全文
posted @ 2007-07-03 11:32 王永庆 阅读(937) 评论(0) 推荐(0) 编辑