Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Agile forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

json call to a struts action

 
Raj Ohadi
Ranch Hand
Posts: 316
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 12617
IntelliJ IDE Ruby
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic