• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Unable to get value submitted from Jquery post in Struts2 action

 
Greenhorn
Posts: 24
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I resolved it. Created a Interceptor-stack and added my interceptor to it and it worked.

 
reply
    Bookmark Topic Watch Topic
  • New Topic