You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by senthil Kumar <se...@tarangtech.com> on 2005/11/25 12:31:05 UTC

Help me

Hello All.,

I have a action form called "DefineProjectForm". In the form I  have the validate method. 

In the validate method I have Following lines of code.

 public ActionErrors validate(ActionMapping mapping,  HttpServletRequest request) { 

1)   boolean foundErrors = false;
2)  String todaystr = new DateFormatter().getFullDate("/");
3)  String flag = this.isModify;
4)   ActionErrors errors = super.validate(mapping, request);

.
;
}

while executing 4th line it is throwing the exception(Attached). Please any one help me.


Thanks In advance
Senthil Kumar.
This e-mail and any files transmitted with it are for the sole use of the intended recipient(s) and may contain confidential and privileged information. If you are not the intended recipient or received it in error, please contact the sender by reply e-mail and destroy all copies of the original message. Please do not copy it for any purpose or disclose its contents.

Copyright Tarang Software Technologies Pvt. Ltd. 2004. All rights Reserved

Re: Help me

Posted by Laurie Harper <la...@holoweb.net>.
You haven't given enough information to be sure (we'd need to see your 
form bean definition, validation rules and form bean code) but my guess 
is you have validation rules for a property that doesn't exist in your 
form bean.

L.

senthil Kumar wrote:
> Hello All.,
> 
> I have a action form called "DefineProjectForm". In the form I  have the validate method. 
> 
> In the validate method I have Following lines of code.
> 
>  public ActionErrors validate(ActionMapping mapping,  HttpServletRequest request) { 
> 
> 1)   boolean foundErrors = false;
> 2)  String todaystr = new DateFormatter().getFullDate("/");
> 3)  String flag = this.isModify;
> 4)   ActionErrors errors = super.validate(mapping, request);
> 
> .
> ;
> }
> 
> while executing 4th line it is throwing the exception(Attached). Please any one help me.
> 
> 
> Thanks In advance
> Senthil Kumar.
> This e-mail and any files transmitted with it are for the sole use of the intended recipient(s) and may contain confidential and privileged information. If you are not the intended recipient or received it in error, please contact the sender by reply e-mail and destroy all copies of the original message. Please do not copy it for any purpose or disclose its contents.
> 
> Copyright Tarang Software Technologies Pvt. Ltd. 2004. All rights Reserved
> 
> 
> ------------------------------------------------------------------------
> 
> 2005-11-25 16:55:07,297 [http-8080-Processor24] ERROR org.apache.commons.validator.ValidatorUtil - Unknown property 'DefineProjectForm'

> java.lang.NoSuchMethodException: Unknown property 'DefineProjectForm'
> 	at org.apache.commons.beanutils.PropertyUtils.getSimpleProperty(PropertyUtils.java:1175)
> 	at org.apache.commons.beanutils.PropertyUtils.getNestedProperty(PropertyUtils.java:752)
> 	at org.apache.commons.beanutils.PropertyUtils.getProperty(PropertyUtils.java:801)
> 	at org.apache.commons.validator.ValidatorUtil.getValueAsString(ValidatorUtil.java:121)
> 	at org.apache.struts.validator.FieldChecks.validateMask(FieldChecks.java:267)
> 	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> 	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
> 	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
> 	at java.lang.reflect.Method.invoke(Method.java:324)
> 	at org.apache.commons.validator.Validator.validateFieldForRule(Validator.java:454)
> 	at org.apache.commons.validator.Validator.validateField(Validator.java:544)
> 	at org.apache.commons.validator.Validator.validate(Validator.java:582)
> 	at org.apache.struts.validator.ValidatorForm.validate(ValidatorForm.java:152)
> 	at com.tarangtech.da.struts.formbeans.DefineProjectForm.validate(DefineProjectForm.java:1139)
> 	at org.apache.struts.action.RequestProcessor.processValidate(RequestProcessor.java:942)
> 	at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:255)
> 	at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1482)
> 	at org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:525)
> 	at javax.servlet.http.HttpServlet.service(HttpServlet.java:709)
> 	at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
> 	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:237)
> 	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:157)
> 	at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:214)
> 	at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
> 	at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
> 	at org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:198)
> 	at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:152)
> 	at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
> 	at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
> 	at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:137)
> 	at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
> 	at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:117)
> 	at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:102)
> 	at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
> 	at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
> 	at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
> 	at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
> 	at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:929)
> 	at org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:160)
> 	at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:799)
> 	at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:705)
> 	at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:577)
> 	at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:683)
> 	at java.lang.Thread.run(Thread.java:536)
> 
> 
> ------------------------------------------------------------------------
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org


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