struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "David Graham" <dgraham1...@hotmail.com>
Subject Re: web.xml/validator question
Date Tue, 17 Dec 2002 19:47:02 GMT
You don't need to use a different servlet to use the validator.  You just 
need to configure the validator as a Struts plugin.

David






>From: Louis Proyect <lnp3@columbia.edu>
>Reply-To: "Struts Users Mailing List" <struts-user@jakarta.apache.org>
>To: "Struts Users Mailing List" <struts-user@jakarta.apache.org>
>Subject: web.xml/validator question
>Date: Tue, 17 Dec 2002 12:09:42 -0500
>
>Based on the installation instructions at: 
>http://home.earthlink.net/~dwinterfeldt/installation.html,
>I added this code to web.xml:
>
>  <servlet>
>     <servlet-name>validator</servlet-name>
>     
><servlet-class>org.apache.struts.validator.action.ValidatorServlet</servlet-class>
>     <init-param>
>       <param-name>config-rules</param-name>
>       <param-value>/WEB-INF/validator-rules.xml</param-value>
>     </init-param>
>     <init-param>
>       <param-name>debug</param-name>
>       <param-value>2</param-value>
>     </init-param>
>     <init-param>
>       <param-name>config</param-name>
>       <param-value>/WEB-INF/validation.xml</param-value>
>     </init-param>
>     <load-on-startup>2</load-on-startup>
>   </servlet>
>
>===
>
>However, I get the following error message:
>
>StandardWrapper[/pur:validator]: Marking servlet validator as unavailable
>
>StandardContext[/pur]: Servlet /pur threw load() exception: 
>javax.servlet.ServletException: Wrapper cannot find servlet class 
>org.apache.struts.validator.action.ValidatorServlet or a class it depends 
>on
>
>javax.servlet.ServletException: Wrapper cannot find servlet class 
>org.apache.struts.validator.action.ValidatorServlet or a class it depends 
>on
>
>===
>
>What's wrong?
>
>
>--
>To unsubscribe, e-mail:   
><mailto:struts-user-unsubscribe@jakarta.apache.org>
>For additional commands, e-mail: 
><mailto:struts-user-help@jakarta.apache.org>


_________________________________________________________________
MSN 8 with e-mail virus protection service: 2 months FREE* 
http://join.msn.com/?page=features/virus


--
To unsubscribe, e-mail:   <mailto:struts-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:struts-user-help@jakarta.apache.org>


Mime
View raw message