This week's book giveaway is in the General Computing forum.
We're giving away four copies of Arduino in Action and have Martin Evans, Joshua Noble, and Jordan Hochenbaum on-line!
See this thread for details.
The moose likes Struts and the fly likes json call to a struts action Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


JavaRanch » Java Forums » Frameworks » Struts
Reply Bookmark "json call to a struts action" Watch "json call to a struts action" New topic
Author

json call to a struts action

Raj Ohadi
Ranch Hand

Joined: Jun 30, 2006
Posts: 314
from javascript we can make json call and expose some struts action's methods as json. Is it possible when we access an action from a URL, it directly uses json method(s) in the action class and forward the results to JSP ? In other words, do we have to make json call on action class methods from javascript only ?
David Newton
Author
Rancher

Joined: Sep 29, 2008
Posts: 12617

I'm not sure what you're asking. By a "JSON call" do you mean an Ajax call?

*How* a request is crafted doesn't matter--just that all the data expected is present. I'm not sure what a "JSON method in an action class", either.
 
I agree. Here's the link: http://zeroturnaround.com/jrebel - it saves me about five hours per week
 
subject: json call to a struts action
 
Similar Threads
struts2 (2.1.8.1) json result type problems
How to call struts application through JSON
Struts2-json plugin not serializing action class to json
Any hint of JQuery on struts2 tutorial, thanks!
ArrayList and Ajax