• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Struts 2 Token interceptor

 
nir sharma
Ranch Hand
Posts: 72
Eclipse IDE Java Tomcat Server
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I create a demo project to implement token session to prevent multiple form submission. It worked fine.
But it didn't work when I implemented the same thing in my project.
I have written <s:token/> inside form tag in login.jsp.
In struts:

Rather than showing the login page, it showing the error page directly.
Any suggestions.
 
nir sharma
Ranch Hand
Posts: 72
Eclipse IDE Java Tomcat Server
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I'm getting this warning in log file

can anyone help. I'm unable to find any solution related to this over the internet.
 
jatan bhavsar
Ranch Hand
Posts: 299
Eclipse IDE Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Nir,

Can you post the whole code or the dummy application where its not working. Try to find out the changes because of which it works in one project and not working in another projectPost some code .
Also,Make sure s your <s:token> tag is inside the form tag.

Regards
Jatan
 
nir sharma
Ranch Hand
Posts: 72
Eclipse IDE Java Tomcat Server
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
found the problem area, my struts code which was creating problem:

but it should be :


thanks for the help.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic