Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
JavaRanch.com/granny.jsp
The moose likes Struts and the fly likes Unable to get value submitted from Jquery post in Struts2 action Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Unable to get value submitted from Jquery post in Struts2 action" Watch "Unable to get value submitted from Jquery post in Struts2 action" New topic
Author

Unable to get value submitted from Jquery post in Struts2 action

Hasif Subair
Greenhorn

Joined: Aug 12, 2009
Posts: 24
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

Joined: Aug 12, 2009
Posts: 24
I resolved it. Created a Interceptor-stack and added my interceptor to it and it worked.

 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Unable to get value submitted from Jquery post in Struts2 action