In order to check XML data for validity we have to prepare its schema XSD-file. This file will be loaded by a JAXP package to a Schema objects instance. Then we'll use Schema to produce Validator which can then be used to validate any document with t…
今天写了个Struts验证框架的实例,总算把验证框架弄清楚了. 上一篇Struts实例的action没有继承ActionSupport类,虽然也可以实现action的功能,但是却不能应用Struts提供的其他 功能. 1.应用验证框架时action必须extends ActionSupport类. public class LoginAction extends ActionSupport{ // 继承ActionSupport类 private static final long serial…