• Post Reply Bookmark Topic Watch Topic
  • New Topic

jQuery, DOM and the ValueStack  RSS feed

Wellington Lacerda
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi folks!

Really nice to finally join the Ranch! My name is Wellington, I'm from Brazil.

Have a doubt on Struts 2. I'm creating a single page DOM clever webapp with jQuery, backed with a handful of jQuery plugins, Spring security (working nicely), Struts 2 and EclipseLink JPA. All seem to work. I invoke the Struts action and it gets invoked, using JPA is working fine, but there's something: I submit a form through pure jQuery to be able to manipulate the result once the result arrives, and it is not working as expected. It is a very basic poll app, with voters selecting an option and a vote action being called.

The action is actually correctly called, the form elems go along in the call properly, but they are not processed into the action's properties back in the action. I can see the action getting invoked, I can see the request query string at the action, with the corresponding param through ActionContext, but the param doesn't get translated into the action property.

Actually, the action is marked result NONE, is that disabling anything I couldn't catch in the docs? Also, can it be some kind of interference between Struts 2 and Spring (filter used for Spring security) ?

I tried to call the action directly from the browser, it gets properly called and processed, but the params are not recognized even there, so it doesn't seem the problem is the ajax call.

Any clues whatsoever?

Thanks ranchers!!

  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!