struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Rafael Taboada <kaliman.fore...@gmail.com>
Subject Validation Framework Manual
Date Fri, 15 Jul 2005 00:22:36 GMT
Hi folks... In http://struts.apache.org/userGuide/dev_validator.html
 I try to use a sample about validwhen
 <field property="emailAddress" depends="validwhen">
<arg0 key="userinfo.emailAddress.label"/>
<var>
<var-name>test</var-name>
<var-value>((sendNewsletter == null) or (*this* != null))</var-value>
</var>
</field>
 But it gives me an error:
 
javax.servlet.ServletException: antlr/TokenStream
	org.apache.struts.actions.DispatchAction.dispatchMethod(DispatchAction.java:300)
	org.apache.struts.actions.DispatchAction.execute(DispatchAction.java:196)
	org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:421)
	org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:226)
	org.apache.struts.action.ActionServlet.process(ActionServlet.java:1164)
	org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:415)
	javax.servlet.http.HttpServlet.service(HttpServlet.java:709)
	javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
	org.netbeans.modules.web.monitor.server.MonitorFilter.doFilter(MonitorFilter.java:362)

 *causa raĆ­z* 

java.lang.NoClassDefFoundError: antlr/TokenStream
	java.lang.Class.getDeclaredMethods0(Native Method)
	java.lang.Class.privateGetDeclaredMethods(Class.java:2365)
	java.lang.Class.getMethod0(Class.java:2611)
	java.lang.Class.getMethod(Class.java:1579)
	org.apache.commons.validator.ValidatorAction.loadValidationMethod(ValidatorAction.java:623)
	org.apache.commons.validator.ValidatorAction.executeValidationMethod(ValidatorAction.java:557)
	org.apache.commons.validator.Field.validateForRule(Field.java:811)
	org.apache.commons.validator.Field.validate(Field.java:890)
	org.apache.commons.validator.Form.validate(Form.java:174)
	org.apache.commons.validator.Validator.validate(Validator.java:367)
	org.apache.struts.validator.ValidatorForm.validate(ValidatorForm.java:112)
	com.sancristobal.Actions.VentaAction.buscarVenta(VentaAction.java:62)
	sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
	sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
	java.lang.reflect.Method.invoke(Method.java:585)
	org.apache.struts.actions.DispatchAction.dispatchMethod(DispatchAction.java:276)
	org.apache.struts.actions.DispatchAction.execute(DispatchAction.java:196)
	org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:421)
	org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:226)
	org.apache.struts.action.ActionServlet.process(ActionServlet.java:1164)
	org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:415)
	javax.servlet.http.HttpServlet.service(HttpServlet.java:709)
	javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
	org.netbeans.modules.web.monitor.server.MonitorFilter.doFilter(MonitorFilter.java:362)

 Do u know why???... Where can I find a manual about how to fill my 
validation.xml???... I mean, what do I have to put in my tags (var-name, 
var-value, ...)
 Thanks in advance

-- 
Rafael Taboada
Software Engineer

Cell : +511-97753290

"No creo en el destino pues no me gusta tener la idea de controlar mi vida"

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message