The Struts Validator has been moved from contrib/validator to the Struts core. Also the last references to Struts related code from the Commons Validator has been removed. So to get this error you are probably using a newer Commons Validator with an old Struts Validator version. The new config file for the validator is in conf/share/validator-rules.xml. You can look at the validator webapp example to see how to configure the ValidatorPlugIn (replaces ValidatorServlet). Documenatation is the next phase.
David --- Struts-dev Newsgroup <[EMAIL PROTECTED]> wrote: > Subject: Validator SERVLET_CONTEXT_KEY Error > From: Vic Cekvenich <[EMAIL PROTECTED]> > === > Hey Dave, I know you are doing the 1.1 build and > real busy. > I am trying to create an upgraded sample app. When > you get a minute... > > When I try to use the latest builds, to use > validator I get this: > (the full source code is at > www.basebeans.com/downloads.jsp. > > Any suggestion? > > > java.lang.NoSuchFieldError: SERVLET_CONTEXT_KEY > at > org.apache.struts.validator.action.ValidatorForm.initValidator(Unknown > > Source) > at > org.apache.struts.validator.action.ValidatorForm.validate(Unknown > Source) > > > > > -- > To unsubscribe, e-mail: > <mailto:[EMAIL PROTECTED]> > For additional commands, e-mail: > <mailto:[EMAIL PROTECTED]> > __________________________________________________ Do You Yahoo!? Yahoo! Sports - live college hoops coverage http://sports.yahoo.com/ -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>