我用JSF的javax.faces.validator.Validator接口写了个验证器类,并写了个Tag handler,一个tld文件,并且对验证器类做了国际化处理,就是他的Exception信息都是从一个xxx.properties文件中读取的。已经验证过成功了,但我想让它独立成一个JAR文件,不知道该怎么做!PS:Tag handler中用到了以下语句:
Application application = FacesContext.getCurrentInstance().getApplication();
PasswordValidator2 validator = 
  (PasswordValidator2) application.createValidator("Password_Validator");所以Tag handler是读取faces-config.xml中的字段来生成验证器类的!