Can you copy/paste some of your action/jsp/configuration code. Are you using the <s:token /> tag in your form?
-Wes On Wed, Oct 29, 2008 at 2:09 PM, Jishnu Viswanath <[EMAIL PROTECTED]> wrote: > Hi, > I read that part, > First thing I used token session interceptor, it says "it will block > subsequent requests until the first request is complete, and then instead of > returning the invalid.token code" > Second there was no double post, none of my pages are loading when I > added this interceptor. > > Regards, > > Jishnu Viswanath > > Software Engineer > > *(+9180)41190300 - 222(Ext) ll * ( + 91 ) 9731209330ll > > Tavant Technologies Inc., > > www.tavant.com > > PEOPLE :: PASSION :: EXCELLENCE > > > -----Original Message----- > From: hernan gonzalez [mailto:[EMAIL PROTECTED] > Sent: Wednesday, October 29, 2008 11:26 PM > To: Struts Users Mailing List > Subject: Re: [S2]Multiple Form Submission > > Take a look at the documentation. The message is quite clear: > > "No result defined for action com.neolivz.sandbox.action.IndexAction > and result invalid.token" > > The Tokeninterceptor throw a special result "invalid.token" when the > token is invalid (what usually > means a double submit). Hence, you should configure specify a jsp for > that result in your action mapping > (for that action, and/or globally). > > Take a look also to the token-session-interceptor.html which has a > (perhaps) more interesting behaviuor. > You might also buy the "struts2 in action" book. > > Regards > > Hernán J. González > http://hjg.com.ar/ > > > > On Wed, Oct 29, 2008 at 2:54 PM, Jishnu Viswanath > <[EMAIL PROTECTED]> wrote: >> >> Hi, >> Thanks for the reply but I tried it out but got this error. >> In my stack I added >> <interceptor-ref name="token-session"/> >> I have a list of interceptors stacks, I added to them >> >> >> HTTP ERROR: 404 >> >> No result defined for action com.neolivz.sandbox.action.IndexAction and >> result invalid.token >> >> RequestURI=/WebSandbox/index.action >> Caused by: >> >> No result defined for action com.neolivz.sandbox.action.IndexAction and >> result invalid.token - action - >> file:/D:/Work/TWMS/WebSandbox/target/classes/struts.xml:12:71 >> at >> com.opensymphony.xwork2.DefaultActionInvocation.executeResult(DefaultActionInvocation.java:345) >> at >> com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:248) >> at >> org.apache.struts2.impl.StrutsActionProxy.execute(StrutsActionProxy.java:50) >> at >> org.apache.struts2.dispatcher.Dispatcher.serviceAction(Dispatcher.java:507) >> at >> org.apache.struts2.dispatcher.FilterDispatcher.doFilter(FilterDispatcher.java:421) >> at >> org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1065) >> at >> org.apache.struts2.dispatcher.ActionContextCleanUp.doFilter(ActionContextCleanUp.java:99) >> at >> org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1065) >> at >> org.springframework.orm.hibernate3.support.OpenSessionInViewFilter.doFilterInternal(OpenSessionInViewFilter.java:174) >> at >> org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:77) >> at >> org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1065) >> at >> org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:365) >> at >> org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java:185) >> at >> org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:181) >> at >> org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:689) >> at >> org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:391) >> at >> org.mortbay.jetty.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:146) >> at >> org.mortbay.jetty.handler.HandlerCollection.handle(HandlerCollection.java:114) >> at >> org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:139) >> at org.mortbay.jetty.Server.handle(Server.java:285) >> at >> org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:457) >> at >> org.mortbay.jetty.HttpConnection$RequestHandler.headerComplete(HttpConnection.java:751) >> at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:500) >> at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:209) >> at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:357) >> at >> org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java:329) >> at >> org.mortbay.thread.BoundedThreadPool$PoolThread.run(BoundedThreadPool.java:475) >> >> Powered by Jetty:// >> >> Regards, >> >> Jishnu Viswanath >> >> Software Engineer >> >> *(+9180)41190300 - 222(Ext) ll * ( + 91 ) 9731209330ll >> >> Tavant Technologies Inc., >> >> www.tavant.com >> >> PEOPLE :: PASSION :: EXCELLENCE >> >> >> -----Original Message----- >> From: hernan gonzalez [mailto:[EMAIL PROTECTED] >> Sent: Wednesday, October 29, 2008 7:04 PM >> To: Struts Users Mailing List >> Subject: Re: [S2]Multiple Form Submission >> >> http://struts.apache.org/2.0.11.2/docs/token-interceptor.html >> http://struts.apache.org/2.0.11.2/docs/token-session-interceptor.html >> http://www.planetstruts.org/struts2-showcase/token/index.jsp >> >> >> Hernán J. González >> http://hjg.com.ar/ >> >> --------------------------------------------------------------------- >> To unsubscribe, e-mail: [EMAIL PROTECTED] >> For additional commands, e-mail: [EMAIL PROTECTED] >> >> Any comments or statements made in this email are not necessarily those of >> Tavant Technologies. >> The information transmitted is intended only for the person or entity to >> which it is addressed and may >> contain confidential and/or privileged material. If you have received this >> in error, please contact the >> sender and delete the material from any computer. All e-mails sent from or >> to Tavant Technologies >> may be subject to our monitoring procedures. >> >> >> --------------------------------------------------------------------- >> To unsubscribe, e-mail: [EMAIL PROTECTED] >> For additional commands, e-mail: [EMAIL PROTECTED] >> >> > > > > -- > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > Any comments or statements made in this email are not necessarily those of > Tavant Technologies. > The information transmitted is intended only for the person or entity to > which it is addressed and may > contain confidential and/or privileged material. If you have received this in > error, please contact the > sender and delete the material from any computer. All e-mails sent from or to > Tavant Technologies > may be subject to our monitoring procedures. > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > -- Wesley Wannemacher President, Head Engineer/Consultant WanTii, Inc. http://www.wantii.com --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]