aspose file tools
The moose likes Struts and the fly likes when used <s:token> and <interceptor-ref name= setter methods are not being called." title="" /> Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Frameworks » Struts
Reply Bookmark "when used <s:token> and <interceptor-ref name="tokenSession" /> setter methods are not being called." Watch "when used <s:token> and <interceptor-ref name="tokenSession" /> setter methods are not being called." New topic
Author

when used <s:token> and <interceptor-ref name="tokenSession" /> setter methods are not being called.

manjesh ipp
Greenhorn

Joined: Jan 01, 2011
Posts: 7
Hi ,
I am using struts2-spring integration module in my project.
some of the jars that I am using are as follows.

struts2-spring-plugin-2.1.6.jar
struts2-core-2.1.6.jar
xwork-2.1.2.jar
.........

I have a problem.
when I use <s:token> in the form to be submitted and <interceptor-ref name="tokenSession" /> in the struts.xml for corresponding action,
the setter methods in the Action class are not called...... as a result I am not able to save form parameters into database.
I don't see any error or warning messages on the tomcat's console.

However, if I remove <s:token> and <interceptor-ref name="tokenSession" /> , on hitting the submit button setter methods are called and I am able to save them into database.

what could be the problem?
can anyone give me some clue..
thanks in advance.
-mist
mari selvam
Greenhorn

Joined: Sep 25, 2012
Posts: 1
Hi..It should be <interceptor-ref name="token-session/>
instead of <interceptor-ref name="tokenSession/>
 
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: when used <s:token> and <interceptor-ref name="tokenSession" /> setter methods are not being called.
 
Similar Threads
struts2 problem
interceptor not working
global db connection settings in struts2
Struts2 after action invoked
Struts2: file upload not working