Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Unable to get value submitted from Jquery post in Struts2 action

 
Hasif Subair
Greenhorn
Posts: 24
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am new struts and I am not sure what i am missing here. When I submit this form all the fields are null in the struts action class. I have added an interceptor "adminHomeInterceptor" to check whether the user is admin or not, This works fine when I remove that interceptor-ref. But I have to check for all request whether the user is admin, so cant remove that interceptor. Any help would be deeply appreciated.

Here is my jsp.


This is a dynamically loaded form.


My Strust2 Action Class


Here is my struts.xml file

 
Hasif Subair
Greenhorn
Posts: 24
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I resolved it. Created a Interceptor-stack and added my interceptor to it and it worked.

 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic