File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Struts and the fly likes jQuery, DOM and the ValueStack Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "jQuery, DOM and the ValueStack" Watch "jQuery, DOM and the ValueStack" New topic
Author

jQuery, DOM and the ValueStack

Wellington Lacerda
Greenhorn

Joined: Jun 03, 2011
Posts: 2
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!!

Wellington
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: jQuery, DOM and the ValueStack