struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Michael Ruppin <mrup...@yahoo.com>
Subject RE: action mapping 'input' question
Date Fri, 18 Jul 2003 16:52:01 GMT
Unless validation suceeds, this looks like an infinite
loop to me:

 	input="/ForgotPassword.do"
 	path="/ForgotPassword"> 

m

--- Erez Efrati <ereze@netmedia.net.il> wrote:
> I am using struts/tiles/validator in my application.
> 
> Using the following configuration works fine, still
> I see that on the
> first invocation the form gets validated and I get
> validation errors. My
> ForgotPasswordAction action is used both for the
> INIT and the SUBMIT
> operations. The only solution I read about is
> putting 'validate'=false
> and control the invocation of the super.validate()
> in my code. Is this
> true?
> 
> <action name="ForgotPasswordForm" 
> 	type="web.ForgotPasswordAction"  
> 	validate="true" 
> 	input=".forgotPassword" 
> 	scope="request" 
> 	path="/ForgotPassword"> 
> 
> 	<forward name="show" path=".forgotPassword"
> redirect="false" />
> </action>
> 
> If I use the following:
> <action name="ForgotPasswordForm" 
> 	type="web.ForgotPasswordAction"  
> 	validate="true" 
> 	input="/ForgotPassword.do" 
> 	scope="request" 
> 	path="/ForgotPassword"> 
> 
> 	<forward name="show" path=".forgotPassword"
> redirect="false" />
> </action>
> 
> Then I get the following error: (now it's endless...
> really so sorry :)
> 
> javax.servlet.ServletException: Servlet execution
> threw an exception
> 	at
>
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Applica
> tionFilterChain.java:269)
> 	at
>
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilt
> erChain.java:193)
> 	at
>
org.securityfilter.filter.SecurityFilter.doFilter(SecurityFilter.java:19
> 9)
> 	at
>
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Applica
> tionFilterChain.java:213)
> 	at
>
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilt
> erChain.java:193)
> 	at
>
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValv
> e.java:256)
> 	at
>
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.i
> nvokeNext(StandardPipeline.java:643)
> 	at
>
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:4
> 80)
> 	at
>
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
> 	at
>
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValv
> e.java:191)
> 	at
>
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.i
> nvokeNext(StandardPipeline.java:643)
> 	at
>
org.apache.catalina.valves.CertificatesValve.invoke(CertificatesValve.ja
> va:246)
> 	at
>
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.i
> nvokeNext(StandardPipeline.java:641)
> 	at
>
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:4
> 80)
> 	at
>
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
> 	at
>
org.apache.catalina.core.StandardContext.invoke(StandardContext.java:241
> 5)
> 	at
>
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java
> :180)
> 	at
>
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.i
> nvokeNext(StandardPipeline.java:643)
> 	at
>
org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherVa
> lve.java:171)
> 	at
>
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.i
> nvokeNext(StandardPipeline.java:641)
> 	at
>
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java
> :172)
> 	at
>
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.i
> nvokeNext(StandardPipeline.java:641)
> 	at
>
org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:509
> )
> 	at
>
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.i
> nvokeNext(StandardPipeline.java:641)
> 	at
>
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:4
> 80)
> 	at
>
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
> 	at
>
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.
> java:174)
> 	at
>
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.i
> nvokeNext(StandardPipeline.java:643)
> 	at
>
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:4
> 80)
> 	at
>
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
> 	at
>
org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:223)
> 	at
>
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:59
> 4)
> 	at
>
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processC
> onnection(Http11Protocol.java:392)
> 	at
>
org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:56
> 5)
> 	at
>
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool
> .java:619)
> 	at java.lang.Thread.run(Thread.java:536)
> 
> 
> root cause 
> 
> java.lang.StackOverflowError
> 	at
>
org.apache.catalina.core.ApplicationHttpRequest.setAttribute(Application
> HttpRequest.java:247)
> 	at
>
org.apache.catalina.core.ApplicationHttpRequest.setAttribute(Application
> HttpRequest.java:250)
> 	at
>
org.apache.catalina.core.ApplicationHttpRequest.setAttribute(Application
> HttpRequest.java:250)
> 	at
>
org.apache.catalina.core.ApplicationHttpRequest.setAttribute(Application
> HttpRequest.java:250)
> 	at
>
org.apache.catalina.core.ApplicationHttpRequest.setAttribute(Application
> HttpRequest.java:250)
> 	at
>
org.apache.catalina.core.ApplicationHttpRequest.setAttribute(Application
> HttpRequest.java:250)
> 	at
>
org.apache.catalina.core.ApplicationHttpRequest.setAttribute(Application
> HttpRequest.java:250)
> 	at
>
org.apache.catalina.core.ApplicationHttpRequest.setAttribute(Application
> HttpRequest.java:250)
> 	at
>
org.apache.catalina.core.ApplicationHttpRequest.setAttribute(Application
> HttpRequest.java:250)
> 	at
>
org.apache.catalina.core.ApplicationHttpRequest.setAttribute(Application
> HttpRequest.java:250)
> 	at
>
org.apache.catalina.core.ApplicationHttpRequest.setAttribute(Application
> HttpRequest.java:250)
> 	at
>
org.apache.catalina.core.ApplicationHttpRequest.setAttribute(Application
> HttpRequest.java:250)
> 	at
>
org.apache.catalina.core.ApplicationHttpRequest.setAttribute(Application
> HttpRequest.java:250)
> 	at
>
org.apache.catalina.core.ApplicationHttpRequest.setAttribute(Application
> HttpRequest.java:250)
> 	at
>
org.apache.catalina.core.ApplicationHttpRequest.setAttribute(Application
> HttpRequest.java:250)
> 	at
>
org.apache.catalina.core.ApplicationHttpRequest.setAttribute(Application
> HttpRequest.java:250)
> 	at
>
org.apache.catalina.core.ApplicationHttpRequest.setAttribute(Application
> HttpRequest.java:250)
> 	at
>
org.apache.catalina.core.ApplicationHttpRequest.setAttribute(Application
> 
=== message truncated ===


__________________________________
Do you Yahoo!?
SBC Yahoo! DSL - Now only $29.95 per month!
http://sbc.yahoo.com

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


Mime
View raw message